0
点赞
收藏
分享

微信扫一扫

用于 C++ 的 MATLAB 引擎 API

邯唐情感 2022-01-27 阅读 58

目录

共享 MATLAB 会话

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

类型转换

类型定义


        从支持面向对象编程和异步执行的 C++ 程序运行 MATLAB® 代码。
        用于 C++ 的 MATLAB 引擎 API 提供 C++ 编程语言与 MATLAB 之间的接口。此 API 使 C++ 程序能够启动 MATLAB、计算带参数的 MATLAB 函数,并在 MATLAB 和 C++ 程序之间交换数据。

        用于 C++ 的 MATLAB 引擎 API 支持 MATLAB 数据 API,这样,在 MATLAB 外部运行的应用程序可通过独立于 MATLAB 的接口处理 MATLAB 数据。有关 MATLAB 数据 API 的详细信息,可以参考MATLAB 数据 API。

共享 MATLAB 会话

matlan.engine.shareEngine将正在运行的 MATLAB 会话转换为共享会话

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

matlab::engine::connectMATLABConnect to shared MATLAB session synchronously

matlab::engine::connectionMATLABAsync

Connect to shared MATLAB session asynchronously
matlab::engine::findMATLABFind shared MATLAB sessions synchronously
matlab::engine::findMATLABAsyncFind shared MATLAB sessions asynchronously
matlab::engine::startMATLABStart MATLAB synchronously
matlab::engine::startMATLABStart MATLAB asynchronously
matlab::engine::terminateEngineClientFree engine resources during runtime

类型转换

matlab::engine::convertUTF8StringToUTF16StringConvert UTF-8 string to UTF-16 string
matlab:engine::convertUTF16StringToUTF8StringConvert UTF-16 string to UTF-8 string

类型定义

matlab::engine::StreamBufferDefine stream buffer
matlab:engine::StringDefine UTF16 string

matlab::engine::MATLABEngineEvaluate MATLAB functions from C++ program
matlab::engine::FutureResultRetrieve result from asynchronous operation
matlab::engine::ShareFutureResultRetrieve result from asynchronous operation as shared future
matlab::engine::WorkspaceTypeType of MATLAB workspace
举报

相关推荐

0 条评论