|MATLAB Function Reference|
Get current figure handle
h = gcf
returns the handle of the current figure. The current figure is the figure window in which graphics commands such as
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.
Finding and Identifying Graphics Objects for related functions
© 1994-2005 The MathWorks, Inc.