필터 지우기
필터 지우기

MATLAB Engine for python

조회 수: 15 (최근 30일)
Vaibhav Yadav
Vaibhav Yadav 2019년 1월 22일
댓글: Athul Prakash 2020년 10월 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?

답변 (2개)

Brian Hart
Brian Hart 2019년 1월 22일
Try using sys.addpath in Python.

Manu Manuel
Manu Manuel 2020년 3월 6일
편집: Manu Manuel 2020년 3월 6일
path = # specify your path
eng.addpath (path, nargout= 0 )
  댓글 수: 1
Athul Prakash
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 CenterFile Exchange에서 Call MATLAB from Python에 대해 자세히 알아보기

제품


릴리스

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by