%% Close a Single Figure
% Create two figures, each with a line plot.

f1 = figure;
plot(1:10)
f2 = figure;
plot((1:10).^2)

%
% Close the first figure and display the value of f1.

close(f1)
f1

% Close the current figure.

close

% Copyright 2020 The MathWorks, Inc.