gca
Handle to the current axes.
Syntax
Section titled “Syntax”h = gcaDescription
Section titled “Description”Returns a handle to the currently active axes. Used to apply properties to the active axes without explicit handle tracking.
Example
Section titled “Example”set(gca, 'XScale', 'log')