GCF Get Current Figure

Section: Handle-Based Graphics

Usage

Returns the handle for the current figure. The syntax for its use is
  handle = gcf

where handle is the number of the active figure (also its handle).