Deploy to C++ Applications Using MATLAB Data API (C++11) - MATLAB & Simulink (original) (raw)

Main Content

Integrate packaged MATLAB® functions into C++ applications using the MATLAB Data API

In this approach, you use functionality in MATLAB Compiler SDK™ to generate a code archive (.ctf file) containing MATLAB functions, along with a header (.hpp file) that establishes a mapping between MATLAB and C++ data types. Integrate these within your C++ application.

Use MATLAB Compiler SDK API for C++ as an interface between the C++ application and the code archive containing the deployed MATLAB functions. Use the MATLAB Data API to handle data exchange between the C++ application and deployed MATLAB functions. For details on data exchange, see MATLAB Data API for C++.

To ensure that this is the right approach for you, see Choose C++ Deployment Option.

MATLAB Runtime must be installed and set up on the machine running the C++ application. For details, see Download and Install MATLAB Runtime.

Apps

Functions

C/C++ API

Topics

Requirements

Create and Integrate

Data Type Mapping and Sample Generation

More Code Samples

Maintenance