Using Simulink    

Using the sim Command

The full syntax of the command that runs the simulation is

Only the model parameter is required. Parameters not supplied on the command are taken from the Simulation Parameters dialog box settings.

For detailed syntax for the sim command, see sim. The options parameter is a structure that supplies additional simulation parameters, including the solver name and error tolerances. You define parameters in the options structure using the simset command (see simset). The simulation parameters are discussed in The Simulation Parameters Dialog Box.


 Running a Simulation from the Command Line Using the set_param Command