stoping the simulink.

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 ExchangeModeling についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by