Package: Simulink
Superclasses:
Creates SimulationInput
objects to make changes to a model for
multiple or individual simulations
The Simulink.SimulationInput
object allows you to make
changes to a model and run simulations with those changes. These changes are temporarily
applied to the model. Through Simulink.SimulationInput
object, you can change:
Initial state
Model parameters
Block parameters
External inputs
Variables
Through the Simulink.SimulationInput
object, you can
also specify MATLAB® functions to run at the start and the end of each simulation by using
in.setPreSimFcn
and in.setPostSimFcn
,
respectively.Simulink.SimulationInput
does not support the ability to
allow model references to have their own data dictionary.
creates a in
= Simulink.SimulationInput('modelName
')SimulationInput
object for a model.
Method | Purpose |
---|---|
Set model parameters to be used for a specific simulation through
| |
Set block parameters to be used for a specific simulation through
SimulationInput object. | |
Set initial state to be used for a specific simulation through
SimulationInput object. | |
Set external inputs for a simulation through
SimulationInput object. | |
Set variables for a simulation through SimulationInput
object. | |
Specify a MATLAB function to run before start of each simulation through
SimulationInput object. | |
Specify a MATLAB function to run after each simulation is complete through
SimulationInput object. | |
Apply changes to the model specified through a
SimulationInput object. | |
Validate the contents of the SimulationInput
object. | |
Load variables from MAT-file into a
Simulink.SimulationInput object. |
applyToModel
| loadVariablesFromMATFile
| parsim
| setBlockParameter
| setExternalInput
| setInitialState
| setModelParameter
| setPostSimFcn
| setPreSimFcn
| setVariable
| Simulation
Manager
| Simulink.SimulationInput
| validate