Main Content

simulink.compiler.stopSimulation

Stop a long running simulation

Description

simulink.compiler.stopSimulation('modelName') function enables you to stop a long running simulation from a callback or a MATLAB® app for the model specified .

Input Arguments

collapse all

Name of model for which you want to stop the simulation, specified by a string.

Introduced in R2020b