Effacer les filtres
Effacer les filtres

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

4 vues (au cours des 30 derniers jours)
ı 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

Réponse acceptée

Teja Muppirala
Teja Muppirala le 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)

Plus de réponses (2)

Azzi Abdelmalek
Azzi Abdelmalek le 7 Mar 2013
Modifié(e) : Azzi Abdelmalek le 7 Mar 2013
Yes you can do it, without even loading or opening your model
  1 commentaire
Teja Muppirala
Teja Muppirala le 7 Mar 2013
Hey, yeah, you're right, SIM automatically loads it. I didn't know that before.

Connectez-vous pour commenter.


Abdullah Tahir
Abdullah Tahir le 13 Mai 2014
Can you please tell how to pause and resume the Matlab simulation from script file?
  1 commentaire
Abhishek Krishna
Abhishek Krishna le 1 Juil 2018
Add Breakpoint at the place where you want to pause. And forward it step by step

Connectez-vous pour commenter.

Catégories

En savoir plus sur Programmatic Model Editing dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by