Matlab Engine API C++ open and run Simulink Project file
3 次查看(过去 30 天)
显示 更早的评论
Hey,
what is the right way to open and run a simulink project file? I tried evalAsync and load_system. But this cmd needs a slx file.
Do you have some suggestions for me? THX
std::unique_ptr<MATLABEngine> matlabPtr = startMATLAB();
matlabPtr->evalAsync(u"load_system('~/test_project.prj')");
0 个评论
回答(1 个)
Pranav Verma
2021-2-19
Hi Matthias,
You can use openProject to open any .prj file. Simply specify the path to the project as argument to the function.
Thanks
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Call MATLAB from C++ 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!