<< gca Graphics functions gray >>

gcf


get current figure graphics object.


Syntax


cf = gcf()

Output argument


cf

a graphics object: figure graphics object.

Description


cf = gcf() returns the current figure graphics object.

If a figure does not exist, gcf() creates a figure and returns its graphics object.

Example


cf = gcf();
root = groot();
isequal(root.CurrentFigure, cf)

See also


figure, groot.

History


Version Description
1.0.0 initial version

Author


Allan CORNET

<< gca Graphics functions gray >>