How do I stop a simulation in Simulink from the MATLAB command window?
102 views (last 30 days)
Show older comments
MathWorks Support Team
on 10 Sep 2012
Edited: MathWorks Support Team
on 31 May 2023
How do I stop a simulation in Simulink from the MATLAB command window?
Accepted Answer
MathWorks Support Team
on 31 May 2023
Edited: MathWorks Support Team
on 31 May 2023
You can use the following command at the MATLAB command prompt to stop a simulation in SIMULINK from the MATLAB command window:
set_param(gcs, 'SimulationCommand', 'stop')
For more information on what other simulatin commands you can use with SET_PARAM see the Using Simulink Guide here:
0 Comments
More Answers (0)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!