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!