Back to Data Visualization
clf
Clear current figure
Syntax
clf
Description
Clears all charts from the current figure, resetting its state.
Returns
null
Examples
Try It
>> plot([1 2 3]); clf()
Clear current figure
clf
Clears all charts from the current figure, resetting its state.
null
>> plot([1 2 3]); clf()