get
Get design requirement property values
Description
returns the value of all properties of the requirement object.propertyValue
= get(req
)
returns the property values specified by propertyValue
= get(req
,propertyName
)propertyName
.
Examples
Obtain Single Property Value
r = sdo.requirements.SignalBound;
boundTimes = get(r,'BoundTimes');
Obtain Multiple Property Values
r = sdo.requirements.SignalBound; values = get(r,{'BoundTimes','BoundMagnitudes'}); boundTimes = values{1}; boundMagnitudes = values{2};
Input Arguments
req
— Design requirement
design requirement object
Design requirement to evaluate, specified as a time-domain, variable, or frequency-domain requirement object.
Time-Domain Requirements
Variable Requirements
Frequency-Domain Requirements
propertyName
— Property name
string | character vector | cell array
Property name, specified as a string or character vector. To obtain multiple
property values, specify propertyName
as a cell array that contains
the corresponding property names.
Output Arguments
propertyValue
— Property value
scalar | vector | array | character vector | cell array | structure
Property values, returned as a scalar, vector, array, or character vector, depending on the specified property. For more information, see the corresponding requirement object page.
If you specify multiple property names using a cell array, then
propertyValue
is returned as a cell array that contains the
corresponding property values.
If you use the propertyName = get(req)
syntax, then
propertyValue
is returned as a structure. where the field names
match the property names of req
and the field values are the
property values.
Alternatives
You can access property values using dot notation, for example
req.property
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)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)