%% Clear Specific Axes
% Create a figure with two subplots and assign the Axes objects to the variables ax1 and ax2. Add plots to both axes.

ax1 = subplot(2,1,1);
surf(ax1,peaks)

ax2 = subplot(2,1,2);
contour(ax2,peaks)

%
% Clear the surface plot from the upper subplot by specifying ax1 as an input argument to cla.

cla(ax1)

%
% Now, reset all axes properties for the upper subplot, including the camera properties that control the view, by using the optional input argument 'reset'.

cla(ax1,'reset')

% Copyright 2015 The MathWorks, Inc.