This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

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 by clicking the Run button on the Simulink Editor, or entering simulation commands, for example, sim and set_param in the MATLAB Command Window or a MATLAB file.

To learn about multiple simulations, see Run Multiple Simulations.


simSimulate dynamic system
parsimSimulate dynamic system multiple times in parallel or serial
set_paramSet system and block parameter values
get_paramGet parameter names and values
Simulink.BlockDiagram.getInitialStateReturn initial state data of block diagram


Simulink.SimulationInputCreates SimulationInput objects to make changes to a model for multiple or individual simulations
Simulink.SimulationOutputAccess object values of simulation results
Simulink.SimulationMetadataAccess metadata of simulation runs
Simulink.SimState.ModelSimState Access SimState snapshot data


Run Basic Simulations

Simulation Phases in Dynamic Systems

Discover how the Simulink software simulates a dynamic system.

Choosing a Simulation Mode

Based on your simulation needs, select to run your simulation in Normal, Accelerator, and Rapid Accelerator modes.

Simulate a Model Interactively

Start, suspend, and stop a simulation interactively.

Run Simulations Programmatically

Programmatically simulate a model using the sim function.

Save and Restore Simulation State as SimState

Save and restore the complete simulation state for further simulation.

Analyze Simulations

Simulation Pacing

Specify a pace to slow down simulations.

How Stepping Through a Simulation Works

Learn how simulation snapshots work.

Set Conditional Breakpoints for Stepping a Simulation

Pause simulation using conditional breakpoints.

Display Port Values for Debugging

Display the values of block outputs on the block diagram during simulation.

Perform Iterative Simulations With Fast Restart

How Fast Restart Improves Iterative Simulations

Learn when to use Fast Restart for speeding up simulation.

Get Started with Fast Restart

Configures your model to prepare for Fast Restart simulation.