Main Content


Stop a long running simulation


simulink.compiler.stopSimulation('modelName') function enables you to stop a 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