Run multiple simulations from the Simulink Editor
Multiple Simulations panel allows you to set up multiple simulations for a block parameter that you want to vary, for example, for a parameter sweep, or Monte Carlo simulations. You can pick the block parameter of interest from the model canvas and specify values that you want to use for the simulations. You can also specify variables for the simulations. With the Multiple Simulations panel, you can provide configurations such as Use Parallel to run your simulations in parallel. To run the simulations that you have set up, first, select the design study, then click the Run All button in the Simulation section on the Simulink® toolstrip. Once the simulations are complete, you can view and manage the results in Simulation Manager.
Open the Multiple Simulations
To open the Multiple Simulations panel, navigate to the Prepare section on the Simulink toolstrip. In the Inputs & Parameter Tuning section, click Multiple Simulations .
parsim(in) is the command line equivalent syntax for the command
In the panel, you can click the right most button to create a new design study. A new design study object is added to the panel. The name of this design study is automatically populated. To change the name, double click on the name and enter your preferred name. A design study is an object that allows you to set up simulations. Once you configure and set up the values for the simulations, you can select this design study and click Run All on the Simulink toolstrip to run the simulations.
Introduced in R2021b