-
Transplant所实现的是一个Matlab的python客户端,可以启动Matlab服务器并传送经过Json编码的消息,
-
Transplant通过ZeroMQ将JSON发送到Matlab,并在Matlab解析JSON。
-
Matlab中的matrices和numpy的arrays可以相互转换。
- 启动时间:在MEfP中启动一个Matlab实例的时间(3.8 s)比在移植中(6.1 s)短。但由于这样做的情况相对较少,因此差异通常不会太大
- 运行效率:横坐标是参数规模,纵坐标是执行时间。参考上图即可。
只需要pip install Transplant即可启用matlab()进行远程调用,不需要安装matlab更不用配置engine即可完成,更方便简单。
参考:- https://bastibe.de/2015-11-03-matlab-engine-performance.html
- https://www.weihuayi.cn/code/matlab/matlab_engine.html(魏老师的主页做的不错,推荐)
- https://pypi.org/project/Transplant/



