필터 지우기
필터 지우기

calling matlab functions from python

조회 수: 3 (최근 30일)
RD
RD 2015년 3월 8일
댓글: RD 2015년 3월 8일
I am trying to call matlab functions from python. According to the instructions given in this link for installing the matlab engine module http://www.mathworks.com/help/releases/R2014b/matlab/matlab_external/install-the-matlab-engine-for-python.htmll, I should have a folder called engines in the extern folder. However my extern doesnt contain this folder. I am using matlab R2014 which according to the release notes contains support for this task

답변 (1개)

Robert Snoeberger
Robert Snoeberger 2015년 3월 8일
편집: Robert Snoeberger 2015년 3월 8일
My first guess would be that you are looking in the extern folder from an older version of MATLAB. What value did you use for matlabroot?
I'm on a mac. In my case, matlabroot is " /Applications/MATLAB_2014b.app/ "
$ ls /Applications/MATLAB_R2014b.app/extern/
engines examples include lib
If I look in the extern folder from an older version, then the engines folder isn't available.
$ ls /Applications/MATLAB_R2013b.app/extern/
examples include lib
  댓글 수: 3
Ken Atwell
Ken Atwell 2015년 3월 8일
RD, sorry, the Python interface you are trying to use was added in the "b" release and you have the earlier "a" release. See http://www.mathworks.com/help/matlab/release-notes.html#R2014b
RD
RD 2015년 3월 8일
Yea that is what i thought too. I am currently updating my version to r2014b. Thank you all for your help!

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by