The MATLAB Engine API for C++ provides an interface between the C++ programming language and MATLAB. This API enables C++ programs to launch MATLAB, evaluate MATLAB functions with arguments, and exchange data between MATLAB and C++ programs.
The MATLAB Engine API for C++ supports the MATLAB Data API, which provides a way for applications running outside of MATLAB to work with MATLAB data through a MATLAB-neutral interface. For more information on the MATLAB Data API, see MATLAB Data API.
|Convert running MATLAB session to shared session|
|Connect to shared MATLAB session synchronously|
|Connect to shared MATLAB session asynchronously|
|Find shared MATLAB sessions synchronously|
|Find shared MATLAB sessions asynchronously|
|Start MATLAB synchronously|
|Start MATLAB asynchronously|
|Free engine resources during runtime|
|Convert UTF-8 string to UTF-16 string|
|Convert UTF-16 string to UTF-8 string|
|Define stream buffer|
|Define UTF16 string|
Introduction to the basic design of a C++ engine program.
Build engine applications on different platforms.
Use this sample code to confirm your development environment for the MATLAB Engine API for C++.
The MATLAB Engine C++ API comprises functions, classes, and typedefs in
Call MATLAB functions from C++, passing variable to MATLAB and returning variables to C++.
Evaluate MATLAB expression from C++ and write variables into the MATLAB base workspace.
Pass variables from C++ to MATLAB as function arguments or by placing those variables directly in the MATLAB base workspace.
Get variables from the MATLAB base or global workspace.
Redirect MATLAB command window output, including error messages, to you C++ program.
Run Simulink® model simulations from C++ and visualize the results with MATLAB graphics.
How to convert an engine application to a deployed application using MATLAB Compiler SDK™.
Create a structure array in C++ and pass it to MATLABor get a structure array defined in MATLAB.
Create heterogeneous arrays in C++ to use as MATLAB cell arrays.
Pass enumeration members of MATLAB enumeration classes to MATLAB from C++.
Pass arrays to MATLAB as MATLAB sparse arrays.