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

ı 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

 Akzeptierte Antwort

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)

Weitere Antworten (2)

Azzi Abdelmalek
Azzi Abdelmalek am 7 Mär. 2013
Bearbeitet: Azzi Abdelmalek am 7 Mär. 2013

0 Stimmen

Yes you can do it, without even loading or opening your model

1 Kommentar

Hey, yeah, you're right, SIM automatically loads it. I didn't know that before.

Melden Sie sich an, um zu kommentieren.

Abdullah Tahir
Abdullah Tahir am 13 Mai 2014

0 Stimmen

Can you please tell how to pause and resume the Matlab simulation from script file?

1 Kommentar

Add Breakpoint at the place where you want to pause. And forward it step by step

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Simulink Environment Customization finden Sie in Hilfe-Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by