%% Clear Axes and Reset All Axes Properties
% Create a line plot and set the axis limits.

x = linspace(0,2*pi);
y = sin(x);
plot(x,y)
axis([0 5 -2 2])

%
% Clear the line plot from the axes and reset all the axes properties to their default values. cla reset resets all properties of the current axes, except for the Position and Units properties.

cla reset

% Copyright 2012 The MathWorks, Inc.