setBlockParameter
Set block parameters to be used for a specific simulation throughSimulationInput
object,in
Description
in = in.setBlockParameter(
sets the parameter on the block specified at'BlockPath'
,'ParameterName'
,'Value'
,...'BlockPathN'
'ParameterNameN'
,'ValueN'
)BlockPath
with the propertiesParameterName
andValue
. You can use thesetBlockParameter
method to specify block parameters in model reference hierarchy. You can set multiple block parameters in a model using the sameSimulationInput
object.
You can usegetBlockParameter('BlockPath','ParameterName')
method to get the value of block parameter and theremoveBlockParameter('BlockPath','ParameterName')
method to remove block parameter from theSimulink.SimulationInput
object.