Set block parameters to be used for a specific
simulation through SimulationInput
object, in
in = in.setBlockParameter(
sets the parameter on the block specified at 'BlockPath'
,'ParameterName'
,'Value'
,...'BlockPathN'
'ParameterNameN'
,'ValueN'
)BlockPath
with the
properties ParameterName
and Value
. You
can use the setBlockParameter
method to specify block parameters
in model reference hierarchy. You can set multiple block parameters in a model using
the same SimulationInput
object. For more
information on block parameter, see Block-Specific Parameters.
You can use getBlockParameter('BlockPath','ParameterName')
method to get the value of block parameter and the
removeBlockParameter('BlockPath','ParameterName')
method to
remove block parameter from the Simulink.SimulationInput
object.
applyToModel
| loadVariablesFromMATFile
| parsim
| setExternalInput
| setInitialState
| setModelParameter
| setPostSimFcn
| setPreSimFcn
| setVariable
| Simulation
Manager
| Simulink.SimulationInput
| validate