MATLAB Engine for python
이전 댓글 표시
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?
답변 (2개)
Brian Hart
2019년 1월 22일
0 개 추천
Try using sys.addpath in Python.
Manu Manuel
2020년 3월 6일
편집: Manu Manuel
2020년 3월 6일
0 개 추천
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.
카테고리
도움말 센터 및 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!