Start MATLAB and Call Functions from C++ Applications
Use the C++ Engine API to interact with MATLAB® from C++ applications. The C++ Engine API allows you to start a MATLAB session or connect to an existing session, read and set the value of variables, evaluate MATLAB statements, call MATLAB functions, and receive results.
C++ Start and Connect Functions
|Start MATLAB synchronously|
|Start MATLAB asynchronously|
|Connect to shared MATLAB session synchronously|
|Connect to shared MATLAB session asynchronously|
|Find shared MATLAB sessions synchronously|
|Find shared MATLAB sessions asynchronously|
|Free engine resources during run time|
Start and Connect to MATLAB
- Call MATLAB Functions from C++
Call MATLAB functions from C++, passing variables to MATLAB and returning variables to C++.
- Evaluate MATLAB Statements from C++
Evaluate MATLAB expressions from C++ and write variables to the MATLAB base workspace.
- Pass Variables from C++ to MATLAB
Pass variables from C++ to MATLAB as function arguments or by placing those variables directly into the MATLAB base workspace.
- Pass Variables from MATLAB to C++
Get variables from the MATLAB base or global workspace.
- Redirect MATLAB Command Window Output to C++
Redirect MATLAB Command Window output, including error messages, to your C++ program.
- Run Simulink Simulation from C++
Run Simulink® model simulations from C++ and visualize the results with MATLAB graphics.
- Convert C++ Engine Application to MATLAB Compiler SDK Application
Convert an engine application to a deployed application using MATLAB Compiler SDK™.