getbounds
Get bounds specified in Check block
Description
Examples
Get Bounds from Check Block
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'
Input Arguments
blockpath
— Path to check block
string scalar | character vector
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
— Bounds specified in Check block
cell array
The number of elements returned and objects they contain depends on the
Check block type specified by blockpath
.
Check Step Response Characteristics: Cell array of one element that contains a
sdo.requirements.StepResponseEnvelope
object.Check Custom Bounds: Cell array of two elements — the first and second elements contain the following upper and lower bound values, respectively. Both elements are
sdo.requirements.SignalBound
objects.Check Against Reference: Cell array of one element that contains a
sdo.requirements.SignalTracking
object.
Note
Programmatically changing the bound values in the object returned does not update them in the Block Parameters dialog box.
Version History
Introduced in R2011b
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)