How to run Simulink command without opening those model windows?

조회 수: 17 (최근 30일)
Yuming Cao
Yuming Cao 2011년 12월 12일
댓글: Rahul Shinde 2019년 7월 10일
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
Fangjun Jiang
Fangjun Jiang 2011년 12월 12일
You don't want to show the Simulink model window, or the MATLAB Command Window?
Yuming Cao
Yuming Cao 2011년 12월 12일
Neither of them. Now with load_system i successfully avoid the model window. do you know anything to do with the command window?

댓글을 달려면 로그인하십시오.

채택된 답변

Kaustubha Govind
Kaustubha Govind 2011년 12월 12일
Use load_system instead of open_system.
After you finish with the model, use close_system to unload the model from memory.
  댓글 수: 2
Jessica Jara
Jessica Jara 2019년 4월 11일
Also, it works fine in App Designer !!
Thanks Kaustubha!
Rahul Shinde
Rahul Shinde 2019년 7월 10일
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

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by