Main Content

Run Individual Simulations

Run and control individual simulations directly from the Simulink® Editor or programmatically from the MATLAB® command prompt

Simulating a model gives you results of the algorithms that you build through the process of modeling. You can interact with the simulations by pacing the simulation, tuning model parameters, stopping or pausing the simulation, and displaying port values to evaluate the design of your model. Simulations help you understand the design and behavior of your model.

Simulate a model interactively by clicking the Run button in the Simulink Toolstrip, or programmatically using functions like sim and set_param in the MATLAB Command Window or a MATLAB script.

For information about running parallel and batch simulations, see Run Multiple Simulations.

Fonctions

développer tout

simSimulate Simulink model
set_paramSet Simulink parameter value
get_paramGet parameter names and values
slsim.allowedModelChangesDetermine changes you can make to model based on simulation status
Simulink.BlockDiagram.getInitialStateReturn initial state data of block diagram
get Get operating point information for Stateflow chart, MATLAB System block, or S-function
setSet operating point information for Stateflow chart, MATLAB System block, or S-function
findQuery simulation results in Simulink.SimulationOutput object
getAccess simulation results in Simulink.SimulationOutput object
getSimulationMetadataAccess simulation metadata in Simulink.SimulationOutput object
removePropertyRemove property from Simulink.SimulationOutput object
setUserDataAdd data to metadata in Simulink.SimulationOutput object
setUserStringAdd string to metadata in Simulink.SimulationOutput object
whoGet names of editable properties on Simulink.SimulationOutput object

Objets

Simulink.SimulationInputCreates SimulationInput objects to make changes to model for multiple or individual simulations
Simulink.SimulationOutputAccess simulation outputs and metadata
Simulink.SimulationMetadataAccess metadata of simulation runs
Simulink.op.ModelOperatingPointComplete information that represents model operating point in simulation

Rubriques

Run Basic Simulations

Analyze Simulations

Perform Iterative Simulations With Fast Restart