gcf - gets the current active tksci figure
h : handle of the current figure.
The current figure is the last created (and still existent) figure.
figure(5); figure(); figure(); gcf() // returns 2 close(gcf()); // close figure 2 gcf() // returns 1 close(1); gcf() // returns 5 close(5);