Start MATLAB and Call Functions from C++ Applications
Start and connect to MATLAB, call MATLAB 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.
Functions
Classes
Topics
Start and Connect to MATLAB
- Start MATLAB Sessions from C++
Start and connect to a MATLAB session synchronously or asynchronously from C++. - Connect C++ to Running MATLAB Session
Connect a C++ engine to a MATLAB session that was started as or converted to a shared session.
Call Functions
- 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. - Convert C++ Engine Application to MATLAB Compiler SDK Application
Convert an engine application to a deployed application using MATLAB Compiler SDK™.