主要内容

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数据。

分享MATLAB会议

matlab.engine.shareEngine Convert runningMATLAB会话到共享会话

启动,查找,连接和终止MATLAB

MATLAB ::引擎::connectMATLAB Connect to sharedMATLABsession synchronously
matlab ::引擎:: connectmatlabasync Connect to sharedMATLABsession asynchronously
MATLAB ::引擎:: Findmatlab Find sharedMATLAB会议同步
MATLAB ::引擎:: FindmatlabAsync Find sharedMATLABsessions asynchronously
MATLAB ::引擎::startMATLAB StartMATLABsynchronously
MATLAB ::引擎::startMATLABAsync StartMATLABasynchronously
MATLAB ::引擎::terminateEngineClient Free engine resources during runtime

Type Conversions

MATLAB ::引擎::convertUTF8StringToUTF16String 将UTF-8字符串转换为UTF-16字符串
MATLAB ::引擎::convertUTF16StringToUTF8String Convert UTF-16 string to UTF-8 string

Type Definitions

matlab ::引擎:: streambuffer 定义流缓冲区
MATLAB ::引擎::String Define UTF16 string

Classes

MATLAB ::引擎::MATLABEngine 评估MATLABC ++程序的功能
MATLAB ::引擎::FutureResult 检索异步操作的结果
MATLAB ::引擎::SharedFutureResult 检索异步操作作为共享未来的结果
MATLAB ::引擎:: WorkspaceType 类型的MATLABworkspace

生成C ++代码接口

matlab.engine.typedinterface.generateCPP 生成C ++代码接口MATLAB软件包,类和功能

Topics

设置和构建引擎应用程序

Start and Connect toMATLAB

调用功能和交换数据

创造MATLABData Types

Strongly Typed Interface

Related Information