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
set_param in the
MATLAB Command Window or a MATLAB script.
For information about running parallel and batch simulations, see Run Multiple Simulations.
Run and Configure Simulations
|Simulate Simulink model|
|Set Simulink parameter value|
|Get parameter names and values|
|Determine changes you can make to model based on simulation status|
Simulate from Initial State or Operating Point
|Return initial state data of block diagram|
|Get operating point information for Stateflow chart, MATLAB System block, or S-function|
|Set operating point information for Stateflow chart, MATLAB System block, or S-function|
Analyze Simulation Outputs and Metadata
|Query and access properties on |
|Access simulation results in |
|Access simulation metadata in |
|Remove property from |
|Add data to metadata in |
|Add string to metadata in |
|Get names of editable properties on |
|Access simulation outputs and metadata|
|Access metadata of simulation runs|
|Complete information that represents model operating point in simulation|
|Initial state||Option to specify initial model state or operating point for simulation|
|Final states||Option to log final state values|
|Save final operating point||Option to save complete model operating point when simulation is paused or stopped|
|Input||Option to load external input data for simulation using top-level input ports|
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, choose to run your simulation in normal, accelerator, or rapid accelerator mode.
- Simulate a Model Interactively
Start, suspend, and stop a simulation interactively.
- Run Simulations Programmatically
Programmatically simulate a model using the
- Use Model Operating Point for Faster Simulation Workflow
Reduce the time required to run a set of simulations by simulating from an initial operating point.
- Simulation Pacing
Specify a pace to slow down simulations.
- How Stepping Through Simulation Works
Learn how simulation snapshots work.
- Debug Simulation Using Signal Breakpoints
Set breakpoints to pause simulation at points of interest then step through simulation block by block.
- Display Port Values for Debugging
Display the values of block outputs on the block diagram during simulation.
- Operating Point Behavior
Considerations for using operating point with S-functions and modifying models you want to simulate from an initial operating point.
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.