%% Set z-Axis Tick Values Back to Default Values
% Create a plot and specify the z-axis tick values. Then, set the z-axis tick values back to the default values.

t = 0:pi/50:10*pi;
st = sin(t);
ct = cos(t);
plot3(st,ct,t)
zticks(0:8:40)

%

zticks('auto')

% Copyright 2012 The MathWorks, Inc.