Esecuzione di simulazioni singole
R2026bLa simulazione di un modello fornisce i risultati degli algoritmi costruiti attraverso il processo di modellazione. È possibile interagire con le simulazioni eseguendo il pacing delle stesse, sincronizzando i parametri del modello, interrompendo o mettendo in pausa la simulazione e visualizzando i valori delle porte per valutare la progettazione del modello. Le simulazioni aiutano a comprendere il progetto e il comportamento del modello.
Simulare un modello in modo interattivo facendo clic sul pulsante Run nella barra degli strumenti di Simulink o in modo programmatico utilizzando funzioni come sim e set_param nella finestra di comando MATLAB o in uno script di MATLAB.
Per informazioni sull'esecuzione di simulazioni parallele e in batch, vedere Esecuzione di più simulazioni.
Impostazioni modello
Strumenti
| Simulation Pacing Options | Slow simulation to a specified ratio of simulation time to wall clock time |
Funzioni
Oggetti
Argomenti
Esecuzione delle simulazioni di base
- Run Simulations in the Simulink Editor
Start, pause, and stop simulations from user interfaces, such as the Simulink Editor. - Run Simulations Programmatically
Run simulations programmatically by writing scripts or by issuing commands in the MATLAB Command Window. - Choosing a Simulation Mode
Based on your simulation needs, choose to run your simulation in normal, accelerator, or rapid accelerator mode. - Speed Up Simulation Workflows by Using Model Operating Points
Run sets of simulations faster by simulating from initial operating points. - Simulation Phases in Dynamic Systems
Discover how the Simulink software simulates a dynamic system.
Analisi delle simulazioni
- How Stepping Through Simulations Works
Learn how the software steps through time steps and how to evaluate trade-offs involved in configuring the simulation stepping options. - Debug Simulation Using Signal Breakpoints
Set breakpoints to pause simulation at points of interest for debugging and analysis. - View Signal Values Using Port Value Labels
View signal values in the block diagram during simulation to understand, analyze, and debug your model.
Esecuzione di simulazioni iterative utilizzando il riavvio rapido
- How Fast Restart Improves Iterative Simulations
Learn when to use fast restart for speeding up simulation. - Get Started with Fast Restart
Configure your model to prepare for fast restart simulation. - Script Iterative or Batch Simulations Using Fast Restart
Speed up MATLAB scripts that run iterative or batch simulations by using fast restart.