stoping the simulink.

2 views (last 30 days)
koko kinder
koko kinder on 7 Feb 2012
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.

Accepted Answer

Kaustubha Govind
Kaustubha Govind on 8 Feb 2012
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.

More Answers (0)

Categories

Find more on Modeling in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!