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.
Paramètres du modèle
Outils
Simulation Pacing Options | Slow simulation to a specified ratio of simulation time to wall clock time |
Fonctions
Objets
Rubriques
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
Run simulations programmatically by writing scripts or by issuing commands in the MATLAB Command Window. - 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.
Analyze Simulations
- How Stepping Through Simulation Works
Learn how simulation snapshots work. - Debug Simulation Using Signal Breakpoints
Set breakpoints to pause simulation then step through simulation block by block. - View Signal Values Using Port Value Labels
View signal values in the block diagram during simulation to understand, analyze, and debug your model.
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.