Main Content

Simulink.Simulation.BlockParameter class

Package:Simulink.Simulation

Block parameters inSimulink.SimulationInputobjects

Description

TheSimulink.Simulation.BlockParameterobject specifies the block parameter, path of the block, and the value of the block parameter used by theSimulink.SimulationInputobject during simulation.

In most cases, there is no need to create an object of this class directly. It is recommended that you use thesetBlockParametermethod on theSimulink.SimulationInputobject to add a block parameter to theSimulink.SimulationInputobject.

Creation

bp = Simulink.Simulation.BlockParameter('BlockPath', 'Name', 'Value')creates aSimulink.Simulation.BlockParameterobject,bp, that specifies the block parameter,Name, with aValueon it's path,BlockPath.

Properties

expand all

Path of the block, specified as a character vector.

Name of the block parameter, specified as a character vector.

Value of the block parameter, specified as a character vector.

Version History

介绍了R2020a