How to run Simulink command without opening those model windows?

19 vues (au cours des 30 derniers jours)
Yuming Cao
Yuming Cao le 12 Déc 2011
Commenté : Rahul Shinde le 10 Juil 2019
I'm working on the project that request running those Matlab/Simulink command such like 'open_system()', 'model([],[],[],'compile')' in the cmd command window. So how to run it without throwing out the model windows the matlab window? I've tried '-automation -nodesktop'. But doesn't work. Thanks a lot!
  2 commentaires
Fangjun Jiang
Fangjun Jiang le 12 Déc 2011
You don't want to show the Simulink model window, or the MATLAB Command Window?
Yuming Cao
Yuming Cao le 12 Déc 2011
Neither of them. Now with load_system i successfully avoid the model window. do you know anything to do with the command window?

Connectez-vous pour commenter.

Réponse acceptée

Kaustubha Govind
Kaustubha Govind le 12 Déc 2011
Use load_system instead of open_system.
After you finish with the model, use close_system to unload the model from memory.
  2 commentaires
Jessica Jara
Jessica Jara le 11 Avr 2019
Also, it works fine in App Designer !!
Thanks Kaustubha!
Rahul Shinde
Rahul Shinde le 10 Juil 2019
I am facing error while running sim command
Harness operations are not supported because MATLAB was started with -nodisplay option. Please restart MATLAB without this option to enable harness operations.Do you have any solution for above mentioned issue

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by