How do I stop a simulation in Simulink from the MATLAB command window?

147 ビュー (過去 30 日間)
How do I stop a simulation in Simulink from the MATLAB command window?

採用された回答

MathWorks Support Team
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 件)

カテゴリ

Help Center および File ExchangeSimulink についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by