%% Clear Objects from Specific Axes
% Create a figure with two subplots and add plots to both axes. 

% Copyright 2015 The MathWorks, Inc.


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

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

%% 
% Clear the surface plot from the upper subplot.
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')
