Back to Data Visualization
gcf
Get current figure
Syntax
f = gcf
Description
Returns the handle (ID) of the current figure.
Returns
Figure ID number
Examples
Try It
>> f = gcf
Get current figure
f = gcf
Returns the handle (ID) of the current figure.
Figure ID number
>> f = gcf