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

2 views (last 30 days)
ı 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

Accepted Answer

Teja Muppirala
Teja Muppirala on 7 Mar 2013
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)

More Answers (2)

Azzi Abdelmalek
Azzi Abdelmalek on 7 Mar 2013
Edited: Azzi Abdelmalek on 7 Mar 2013
Yes you can do it, without even loading or opening your model

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

Categories

Find more on Programmatic Model Editing in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!