%% Close Multiple Figures
% Create three figures, and then create a line plot. By default, the plot function targets the current figure (f3).

f1 = figure;
f2 = figure;
f3 = figure;
plot(1:10)

%
% Close figures f1 and f2 simultaneously.

close([f1 f2])

% Copyright 2020 The MathWorks, Inc.