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 specified on Simulink.SimulationIntput
object to model |
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 Simulink.SimulationInput object |
setBlockParameter | Set block parameter values on
Simulink.SimulationInput object |
setExternalInput | Specify external input data for top-level input ports in simulation configured
using Simulink.SimulationInput object |
setInitialState | Configure Simulink.SimulationInput object to
set initial state for simulation |
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 | Specify parameter values for simulation configured using
Simulink.SimulationInput object |
setVariable | Set variable value on SimulationInput
object |
showContents | View contents of Simulink.SimulationInput object |
validate | Validate contents of SimulationInput
object |
Examples
Version History
Introduced in R2017a