启动 MATLAB 并从 C++ 应用程序调用函数
启动并连接到 MATLAB,从 C++ 应用程序调用 MATLAB 函数
使用 C++ Engine API 从 C++ 应用程序与 MATLAB® 进行交互。借助 C++ Engine API,您可以启动 MATLAB 会话或连接到现有会话,读取和设置变量值,计算 MATLAB 语句,调用 MATLAB 函数和接收结果。
函数
类
主题
启动和连接到 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.
调用函数
- 从 C++ 调用 MATLAB 函数
从 C++ 调用 MATLAB 函数,从而将变量传递给 MATLAB 并将变量返回给 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™.