MATLAB Engine for python
13 次查看(过去 30 天)
显示 更早的评论
I have successfully installed matlab.engine module in python.
But, i want to open a matlab file which is not in the same folder as that of python code. How to add path of such remote file and open it using matlab engine in python?
0 个评论
回答(2 个)
Manu Manuel
2020-3-6
编辑:Manu Manuel
2020-3-6
path = # specify your path
eng.addpath (path, nargout= 0 )
1 个评论
Athul Prakash
2020-10-30
You may combine genpath with addpath to add the folder with all its subfolders too.
Sometimes, just eng.cd can be a good alternative.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Call MATLAB from Python 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!