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

 채택된 답변

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)

추가 답변 (2개)

Azzi Abdelmalek
Azzi Abdelmalek 2013년 3월 7일
편집: Azzi Abdelmalek 2013년 3월 7일

0 개 추천

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

댓글 수: 1

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

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

Abdullah Tahir
Abdullah Tahir 2014년 5월 13일

0 개 추천

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

댓글 수: 1

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

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

카테고리

도움말 센터 및 File Exchange에서 Simulink Functions에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by