Can I use a 3rd party MATLAB toolbox with the Python Engine API?
조회 수: 2 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2022년 11월 14일
답변: MathWorks Support Team
2022년 11월 15일
I am using a 3rd-party MATLAB library. Everything works fine within MATLAB, but when I try to call my MATLAB scripts from Python (using the Engine API) I get an 'unrecognized function or variable' error. Is using a 3rd party toolbox supported?
채택된 답변
MathWorks Support Team
2022년 11월 14일
The toolbox has to be added to the path of the MATLAB engine for Python . To do this, please use the following command after starting the engine:
eng.addpath('<path to toolbox root folder>')
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!