Matlab Engine API C++ open and run Simulink Project file

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')");

답변 (1개)

Pranav Verma
Pranav Verma 2021년 2월 19일

0 개 추천

Hi Matthias,
You can use openProject to open any .prj file. Simply specify the path to the project as argument to the function.
You can also refer to the link and follow the steps to open the recent projects.
Thanks

카테고리

도움말 센터File Exchange에서 Naming Conventions에 대해 자세히 알아보기

제품

릴리스

R2020a

질문:

2020년 6월 15일

답변:

2021년 2월 19일

Community Treasure Hunt

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

Start Hunting!

Translated by