gcf Returns a handle to the current figure. Syntax gcf() Outputs R Handle. Example Simple gcf example. R = gcf() R = 2 See Also gca get set Graphics Object Properties waitforbuttonpress