The handle of the root object is always zero.
The handle of a figure is an integer that, by default, is displayed in
the window title, such as Figure 1, which 1 is the handle of this figure.
Other object handles are floating-point numbers that contain information
used by MATLAB
Labels
- HH (1)
Subscribe to:
Post Comments (Atom)
MATLAB provides several functions to get the frequently used handle of object.
ReplyDeletegcf, get current figure handle
gca, get current axes handle
gco, get current object handle
to use gcf to get the handle, simply focusing on the figure, then type 'gcf' in command window of MATLAB