Query graphics object properties
v = get(h)
v = get(h,propertyName)
v = get(h,propertyArray)
v = get(h,'default')
v = get(h,defaultTypeProperty)
v = get(groot,'factory')
v = get(groot,factoryTypeProperty)
Note
Do not use the get
function on Java™ objects
as it will cause a memory leak. For more information, see Access Public and Private Data.
v = get(h)
returns all properties
and property values for the graphics object identified by h
. v
is
a structure whose field names are the property names and whose values
are the corresponding property values. h
can be
a single object or an m
-by-n
array
of objects. If h
is a single object and you do
not specify an output argument, then MATLAB® displays the information
on the screen.
v = get(h,propertyName)
returns
the value for the specific property, propertyName
.
Use single quotes around the property name, for example, get(h,'Color')
. If you do not specify an output argument, then MATLAB displays
the information on the screen.
v = get(h,propertyArray)
returns an m-by-n cell array,
where m is equal to length(h)
and n is
equal to the number of property names contained in propertyArray
.
v = get(h,'default')
returns
all default values currently defined on object h
in
a structure array. The field names are the object property names and
the field values are the corresponding property values. If you do
not specify an output argument, MATLAB displays the information
on the screen.
v = get(h,defaultTypeProperty)
returns
the current default value for a specific property. The argument defaultTypeProperty
is
the word default
concatenated with the object type
(e.g., Figure
) and the property name (e.g., Color
)
in single quotes. For example, get(groot,'defaultFigureColor')
.
v = get(groot,'factory')
returns
the factory-defined values of all user-settable properties in a structure
array. The field names are the object property names and the field
values are the corresponding property values. If you do not specify
an output argument, MATLAB displays the information on the screen.
v = get(groot,factoryTypeProperty)
returns the factory-defined value for a specific property. The argument factoryTypeProperty
is
the word factory
concatenated with the object type
(e.g., Figure
) and the property name (e.g., Color
)
in single quotes. For example, get(groot,'factoryFigureColor')
.