1. 首页
  2. 编程语言
  3. Python
  4. 2023 MATLAB Engine API for Python最新版

2023 MATLAB Engine API for Python最新版

上传者: 2023-03-28 04:16:57上传 ZIP文件 24.17KB 热度 16次

Python可直接调用MATLAB安装中的函数,MATLAB Engine API为此提供了一个Python包,实现了MATLAB与Python的无缝集成。需要环境:MATLAB版本R2022b及以上、Python 3.8、3.9或3.10。安装方法为:运行$ python -m pip install matlabengine==9.13.7。测试代码示例:>>> import matlab.engine>>> eng = matlab.engine.start_matlab()>>> eng.sqrt(4.0) 2.0>>> eng.plus(2, 3) 5>>> eng.isprime(37) True>>> eng.gcd(100.0, 80.0, nargout=3) (20.0, 1.0, -1.0)

下载地址
用户评论
码姐姐匿名网友 2025-01-15 07:42:43

#全网独家#内容详尽#运行顺畅

码姐姐匿名网友 2025-01-16 00:49:14

#运行顺畅#全网独家#注释完整