clf
Clear figure
Description
clf
deletes all children of the current figure that have visible
handles.
clf('reset')
deletes all children of the current figure regardless
of their handle visibility. It also resets the figure properties to their default values,
except for the Position
, Units
, PaperPosition
, and PaperUnits
properties.
Alternatively, you can reset the figure using the clf reset
command
without parentheses.
f = clf(___)
returns the figure for any of the previous
syntaxes.
Examples
Input Arguments
More About
Tips
To clear the contents of a figure, you can alternatively use Clear Figure from the figure window's Edit menu. Using Clear Figure deletes all children of the figure that have visible handles.