How do I stop a simulation in Simulink from the MATLAB command window?
186 次查看(过去 30 天)
显示 更早的评论
MathWorks Support Team
2012-9-10
编辑: MathWorks Support Team
2023-5-31
How do I stop a simulation in Simulink from the MATLAB command window?
采纳的回答
MathWorks Support Team
2023-5-31
编辑:MathWorks Support Team
2023-5-31
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Model, Block, and Port Callbacks 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!