Documentation

Run Simulations

Simulate models Interactively or in batch mode, create repeatable simulations with SimState, run Monte Carlo simulations.

You can interactively start, stop, and pause individual simulations from the Simulink® Editor. You can view your simulation results live and interact with the simulation in various ways, including changing tunable parameters. You can also step forward or back through a simulation, and perform iterative simulations without recompiling your model.

With programmatic simulation, you can run and control simulations from the MATLAB® command prompt. You can also programmatically enable simulation timeouts, capture simulation errors, and access simulation metadata.

Using the multiple simulations API, you can provide a collection of inputs to a model and run multiple simulations with these inputs. With the parsim function, you can run multiple simulations in parallel. This is useful in situations such as model testing, design of experiments, Monte Carlo analysis, and model optimization.

Featured Examples

Was this topic helpful?