Can we run simulink by m file when simulink interface is not opened

1 次查看(过去 30 天)
ı want to run a simulink file by m file .So, ı use 'sim' command.
but when ı use it , simulink interface is opened.
Can we run simulink by m file when simulink interface is not opened

采纳的回答

Teja Muppirala
Teja Muppirala 2013-3-7
Yes, you can use the LOAD_SYSTEM command to load the model into memory without bringing up the Simulink interface, for example:
>> model = 'sldemo_househeat';
>> load_system(model)
>> sim(model)

更多回答(2 个)

Azzi Abdelmalek
Azzi Abdelmalek 2013-3-7
编辑:Azzi Abdelmalek 2013-3-7
Yes you can do it, without even loading or opening your model

Abdullah Tahir
Abdullah Tahir 2014-5-13
Can you please tell how to pause and resume the Matlab simulation from script file?

类别

Help CenterFile Exchange 中查找有关 Programmatic Model Editing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by