About Programmatic Simulation

Entering simulation commands in the MATLAB® Command Window or from a MATLAB file enables you to run unattended simulations. You can perform Monte Carlo analysis by changing the parameters randomly and executing simulations in a loop. You can use either the sim command or the set_param command to run a simulation programmatically. To run simulations simultaneously, you can call sim from within a parfor loop under specific conditions.

Related Examples

Was this topic helpful?