Getting Started    

Running a Single Simulation

As an example, to run the phase noise model, described in Running a Simulink Model, from the command line, type

at the MATLAB prompt. This runs the model in the background without opening the model window. While the simulation is running, the MATLAB prompt is unavailable and you cannot enter another MATLAB command.

After the simulation stops, the prompt reappears. You can then view the results of the simulation by typing phasenoise_sim to open the model.

It is not necessary to open the model window when running a simulation from the command line. Usually you want to send the results of the simulation to the MATLAB workspace, for example, if you are running multiple simulations on a single model.

You can also specify simulation parameters from the command line. For example, the command

runs the model with a Stop time of 1000. This overrides the Stop time setting in the Simulation parameters dialog box. For more information on running simulations, see the Simulink documentation.


  Running Simulations from the Command Line Running Multiple Simulations