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

Syntax

CV = get(H,'PropertyName')
SV = 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.

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. h must be a scalar.

See Also

See Implementing a Set/Get Interface for Properties

get, handle, hgsetget, set (hgsetget)

  


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