%% Clear Specified Figure
% Create two figures, each with a line plot. Set the background color of the first figure.

f1 = figure('Color','b');
plot(1:10)
f2 = figure;
plot((1:10).^2)

%
% Clear the line plot from the first figure without resetting the background color of the figure.

clf(f1)

%
% Now, reset all properties of the first figure.

clf(f1,'reset')

% Copyright 2020 The MathWorks, Inc.