Skip to Main Content Skip to Search
Product Documentation

get (hgsetget) - Query property values of handle objects derived from hgsetget class

Syntax

CV = get(H,'PropertyName')
SV = get(h)
get(h)

Description

CV = get(H,'PropertyName') returns the value of the named property from the objects in the handle array H. If H is scalar, get returns a single value; if H is an array, get returns a cell array of property values. If you specify a cell array of property names, 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.

If H is nonscalar and PropertyName is the name of a dynamic property, get returns a value only if the property exists in all objects referenced in H.

SV = get(h) returns a struct array in which the field names are the object's property names and the values are the current values of the corresponding properties. If h is an array, then SV is a numel(h)-by-1 array of structs.

get(h) displays all property names and their current values for the MATLAB objects with handle h.

Your subclass can override the hgsetget getdisp method to control how MATLAB displays this information.

See Also

get | handle | hgsetget | set (hgsetget)

How To

  


» Learn more
» Download free kit
» Get trial software

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS