Get property value corresponding to stereotype applied to element



[propertyValue,propertyUnits] = getProperty(element,propertyName) obtains the value and units of the property specified in the propertyName argument. Get the property corresponding to an applied stereotype by qualified name '<stereotype>.<property> '.


collapse all

Get the weight property from a component with sysComponent stereotype applied.

>> [val, units] = getProperty(element,'sysComponent.weight')
val =
units =

Input Arguments

collapse all

Name of property, specified as a character vector as a fully qualified name in the form '<stereotype>.<property>'.

Data Types: char

Output Arguments

collapse all

Value of property, returned as a character vector, numeric, or enumeration value.

Data Types: char | double | enum

Units of property to interpret property values, returned as a character vector.

Data Types: char

Introduced in R2019a