%% Close Figure with Specified Number
% Create two figures with specified numbers. Include a line plot in each figure.

figure(1)
plot(1:10)
figure(2)
plot((1:10).^2)

%
% Close the second figure by passing its number to the close function.

close(2)

% Copyright 2020 The MathWorks, Inc.