Query specified property values
CV = get(H,Name)
SV = get(H)
returns the value of the named property from the objects in the handle array
CV = get(
H is scalar,
get returns a single value; if
H is an array,
get returns a cell array of property values.
get matches partial and case-insensitive names that are not ambiguous. Inexact name matching applies only to class properties. Dynamic properties require exact name matches.
If you specify a cell array of property names as the second argument, then
get returns a cell array of values, where each row in the cell corresponds to an element in
H and each column in the cell corresponds to an element in the property name cell array.
H is nonscalar and
Name is the name of a dynamic property,
get returns a value only if the property exists in all objects referenced in
returns a structure in which the field names are the object's property names and the values are the current values of the corresponding properties. If
SV = get(
H is nonscalar, then
SV is a
1 array of structures.
get( displays all property names and their current values for the MATLAB® objects with handle
Your subclass can override the
getdisp method to control how MATLAB displays this information.
H— Input handle array
Input handle array, specified as a single handle or an array of handles
Name— Property to query
Property to query, specified as a combination of partial and case-insensitive names. The inexact name must not be ambiguous. Dynamic properties must use exact names.
CV— Value of queried property
Value of queried property, returned as a single value or a cell array of values.
SV— Structure of property names and values
Structure of property names and values, in which the field names are the object's property names and the values are the current values of the corresponding properties.
To learn about attributes of methods, see Method Attributes.
Get the value of a property named
Data from an instance of a class derived from
propValue = get(obj,'Data');
getdisp method to change how MATLAB displays information returned by