www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/SetZAxisTickLabelsBackToDefaultLabelsExample.m
%% 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')