Main Content

getbounds

Get bounds specified in Check block

Syntax

bnds = getbounds(blockpath)

Description

bnds = getbounds(blockpath) returns the bounds specified in the Check block specified by blockpath.

Input Arguments

blockpath

Check block to get bounds from, specified as a full block path inside single quotes (' '). A block path is of the form model/subsystem/block that uniquely identifies a block in the model. The Simulink® model must be open.

Output Arguments

bnds

Cell array. The number of elements and objects they contain depends on the Check block type.

Note

Programmatically changing the bound values in the object returned does not update them in the Block Parameters dialog box.

Examples

collapse all

Retrieve bounds from a Check Step Response Characteristics block.

load_system('sldo_model1_stepblk');
allBlkReq = getbounds('sldo_model1_stepblk/Step Response');

Type allBlkReq{1} to view the cell array element.

allBlkReq{1}
ans = 
  StepResponseEnvelope with properties:

         InitialValue: 0
           FinalValue: 1
             StepTime: 0
             RiseTime: 5
          PercentRise: 80
         SettlingTime: 7
      PercentSettling: 1.0000
     PercentOvershoot: 10.0000
    PercentUndershoot: 1
                 Type: '<='
                 Name: ''
          Description: ''
            TimeUnits: 'seconds'

Version History

Introduced in R2011b