setBlockParameter
Set block parameters to be used for a specific
simulation through SimulationInput
object, in
Description
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.
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.