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

152 vues (au cours des 30 derniers jours)
How do I stop a simulation in Simulink from the MATLAB command window?

Réponse acceptée

MathWorks Support Team
MathWorks Support Team le 31 Mai 2023
Modifié(e) : MathWorks Support Team le 31 Mai 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:

Plus de réponses (0)

Catégories

En savoir plus sur Simulink dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by