MATLAB Function Reference
  Go to function:
    Search    Help Desk 
gcf    See Also

Get current Figure handle

Syntax

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,

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 ]