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

2 ビュー (過去 30 日間)
Matthias B
Matthias B 2020 年 6 月 15 日
回答済み: Pranav Verma 2021 年 2 月 19 日
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();

回答 (1 件)

Pranav Verma
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.
You can also refer to the link and follow the steps to open the recent projects.


Help Center および File ExchangeSoftware Development Tools についてさらに検索




Community Treasure Hunt

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

Start Hunting!

Translated by