从 Python 调用 MATLAB

目录

从 Python 调用 MATLAB

函数

Python 函数

MATLAB 函数

Python 类


从 Python 调用 MATLAB

编写可用于 MATLAB® 的 Python® 程序

        用于 Python 的 MATLAB 引擎 API 可提供一个包,供 Python 将 MATLAB 作为计算引擎来调用。该引擎支持参考实现 (CPython)。MATLAB 支持版本 2.7、3.6 和 3.7。

  • ​要安装和启动该引擎,可以参考用于Python 的 MATLAB 引擎 API 快速入门。

  • ​要从 MATLAB 调用 Python 函数,可以参考Python Libraries in MATLAB。

        引擎应用程序需要已安装版本的 MATLAB;无法在只有 MATLAB Runtime 的机器上运行 MATLAB 引擎。

函数

Python 函数

matlab.engine.start_matlab

Start MATLAB Engine for Python

matlab.engine.find_matlab

Find shared MATLAB sessions to connect to MATLAB Engine for Python

matlab.engine.connect_matlab

Connect shared MATLAB session to MATLAB Engine for Python

MATLAB 函数

matlab.engine.stareEngine

将正在运行的 MATLAB 会话转换为共享会话

matlab.engine.engineName

返回共享 MATLAB 会话的名称

matlab.engine.isEngineShared

确定 MATLAB 会话是否共享

Python 类

matlab.engine.MatlabEngine

Python object using MATLAB as computational engine within Python session

matlab.engine.FutureResult

Results of asynchronous call to MATLAB function stored in Python object
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值