Simulink.SimulationInput class
Package:万博1manbetx
Superclasses:
CreatesSimulationInput
objects to make changes to a model for multiple or individual simulations
Description
TheSimulink.SimulationInput
object allows you to make changes to a model and run simulations with those changes. These changes are temporarily applied to the model. ThroughSimulink.SimulationInput
object, you can change:
Initial state
Model parameters
Block parameters
External inputs
Variables
Through theSimulink.SimulationInput
object, you can also specify MATLAB®functions to run at the start and the end of each simulation by usingin.setPreSimFcn
andin.setPostSimFcn
, respectively.
Construction
creates ain
= Simulink.SimulationInput('modelName
')SimulationInput
object for a model.
Input Arguments
Properties
Methods
Method |
Purpose |
---|---|
Set model parameters to be used for a specific simulation through |
|
Set block parameters to be used for a specific simulation throughSimulationInput object. |
|
Set initial state to be used for a specific simulation throughSimulationInput object. |
|
Set external inputs for a simulation throughSimulationInput object. |
|
Set variables for a simulation throughSimulationInput object. |
|
Specify a MATLAB function to run before start of each simulation throughSimulationInput object. |
|
Specify a MATLAB function to run after each simulation is complete throughSimulationInput object. |
|
Apply changes to the model specified through aSimulationInput object. |
|
Validate the contents of theSimulationInput object. |
|
Load variables from MAT-file into aSimulink.SimulationInput object. |