GenerateMATLABScripts for Simulation with Scenarios
After associating a scenario with the model, you can generate a MATLAB®script to perform batch simulations. These scripts enable you to connect multiple sets of input signals to your Simulink®model for interactive or batch simulation. You can run simulations multiple times and quickly generate data. This topic assumes that you have a scenario ready to run (seeRoot Inport Mapping Scenarios).
Associate your scenario with the model.
In theSCRIPTsection, clickGenerate MATLAB Scriptand supply a script name when prompted.
To run the script, clickRun Script.
To evaluate the results of the simulation, see the base workspace.
The resulting script uses theSimulink.SimulationInput
对象和parsim
function.
See Also
Simulink.SimulationInput
|parsim