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

[x,y,z] = peaks;
mesh(x,y,z)
zticks([-8 0 8])
zticklabels({'z = -8','z = 0','z = 8'})

%

zticks('auto')
zticklabels('auto')

% Copyright 2012 The MathWorks, Inc.