www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/SetZAxisTickValuesBackToDefaultValuesExample.m

    %% 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')