Back to Data Visualization
gca
Get current axes
Syntax
ax = gca
Description
Returns the handle (ID) of the current axes (same as gcf in this implementation).
Returns
Axes ID number
Examples
Try It
>> ax = gca
Get current axes
ax = gca
Returns the handle (ID) of the current axes (same as gcf in this implementation).
Axes ID number
>> ax = gca