Simulink.SimulationInput
Create Simulink.SimulationInput
objects to make changes to
model for multiple or individual simulations
Description
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. Using a Simulink.SimulationInput
object, you can change initial state, model
parameters, block parameters, external inputs, and 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 the
setPreSimFcn
function and the setPostSimFcn
.
Creation
Description
Input Arguments
Properties
Object Functions
applyToModel | Apply configuration in SimulationIntput object to
model |
getVariantConfiguration | Get name of variant configuration from SimulationInput
object |
loadVariablesFromExternalSource | Load variables from a custom file into Simulink.SimulationInput
object |
loadVariablesFromMATFile | Load variables from MAT file into Simulink.SimulationInput
object |
removeVariable | Remove variable from SimulationInput or
Simulation object |
setBlockParameter | Set block parameter values for simulation using
SimulationInput or Simulation
object |
setExternalInput | Specify external input data for top-level input ports using
SimulationInput or Simulation
object |
setInitialState | Specify initial state for simulation using
SimulationInput or Simulation
object |
setPostSimFcn | Set MATLAB function to run after each simulation |
setPreSimFcn | Specify MATLAB function to run before start of each simulation on
Simulink.SimulationInput object |
setModelParameter | Set model parameter values for simulation using
SimulationInput or Simulation
object |
setVariable | Set variable values for simulation using
SimulationInput or Simulation
object |
setVariantConfiguration | Set variant configuration for simulation using SimulationInput
object |
showContents | View summary of specification in SimulationInput or
Simulation object |
validate | Validate contents of SimulationInput
object |