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 CenterFile Exchange에서 Simulink에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by