Get current Figure handle
Syntax
h = gcf
Description
h = gcf
returns the handle of the current Figure. The current Figure is the Figure window in which graphics commands such as plot, title, and surf draw their results. If no Figure exists, MATLAB creates one and returns its handle. You can use the statement,
get(0,'CurrentFigure')
if you do not want MATLAB to create a Figure if one does not already exist.
See Also
axes, clf, close, delete, figure, gca, gcbo, gco, subplot
Root CurrentFigure property
[ Previous | Help Desk | Next ]