CallMATLABfrom C++
Run MATLAB®来自C ++程序的代码,具有面向对象的编程支持和异步执行万博1manbetx
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++ uses theMATLAB Data API for C++,这为在MATLAB之外运行的应用程序提供了一种方法,可以通过MATLAB-中性接口使用MATLAB数据。
Topics
设置和构建引擎应用程序
- C ++引擎API简介
Introduction to the basic design of a C++ engine program. - Build C++ Engine Programs
Build engine applications on different platforms. - Test Your Build Environment
Use this sample code to confirm your development environment for the MATLAB Engine API for C++. - C ++引擎API
The MATLAB Engine C++ API comprises functions, classes, and typedefs inMATLAB ::引擎
名称空间。
Start and Connect toMATLAB
- 从C ++启动MATLAB会话
启动并从C ++同步和异步连接到MATLAB会话。 - Connect C++ to Running MATLAB Session
Connect the C++ engine to a MATLAB session that has been started as or converted to a shared session.
调用功能和交换数据
- Call MATLAB Functions from C++
Call MATLAB functions from C++, passing variable to MATLAB and returning variables to C++. - 评估MATLAB Statements from C++
评估MATLAB expression from C++ and write variables into 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 in 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++
重定向MATLAB命令窗口输出,包括错误消息,向您c ++程序。 - 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
How to convert an engine application to a deployed application usingMATLAB Compiler SDK™.
创造MATLABData Types
- 从C ++创建结构数组
创造a structure array in C++ and pass it to MATLAB or get a structure array defined in MATLAB. - 创造Cell Arrays from C++
在C ++中创建异质阵列以用作MATLAB单元格数组。 - 通过C ++将枚举传递给MATLAB
Pass enumeration members of MATLAB enumeration classes to MATLAB from C++. - 将稀疏阵列从C ++传递到MATLAB
Pass arrays to MATLAB as MATLAB sparse arrays.
Strongly Typed Interface
- C ++的强烈键入接口是什么?
Learn how a C++ MATLAB Data API interface supports strongly typed MATLAB code. - 为强键入界面编写MATLAB代码
如何为强键入的C ++接口编写MATLAB代码。 - 创造C++ Header File from Strongly Typed MATLAB Function
MATLAB数据API创建一个c++头文件rom a strongly typed MATLAB function and integrate it with C++ application code that calls MATLAB. - C ++和强烈键入MATLAB代码之间的数据类型映射
Refer to data type mappings between C++ and MATLAB when using strongly typed MATLAB code.