MATLAB Functions Help Desk

gcf

Purpose

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 what MATLAB to create a Figure if one does not alread exist.

See Also

axes, clf, close, delete, figure, gca, gcbo, gco, subplot

Root CurrentFigure property

[ Previous | Help Desk | Next ]