Hi, I want to know how can I stop running the simulink model after I press the close button (X ) at the top right corner.

 채택된 답변

Kaustubha Govind
Kaustubha Govind 2012년 2월 8일

0 개 추천

The command to stop simulation is:
>> set_param(modelName, 'SimulationCommand', 'Stop')
However, Simulink does not let you close the model (using the X button) unless the model has not stopped running. So, I'm not sure if I have understood your question correctly.

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by