www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/SpecifyZAxisTickLabelsForSpecificAxesExample.m
%% Specify z-Axis Tick Labels for Specific Axes % Create a figure with two subplots and return the axes objects as |ax1| % and |ax2|. Set the _z_-axis tick values and labels for the left subplot % by passing |ax1| as the first input argument to the |zticks| and % |zticklabels| functions. ax1 = subplot(1,2,1); stem3(4*rand(5)) zticks(ax1,[0 2 4]) zticklabels(ax1,{'z = 0','z = 2','z = 4'}) ax2 = subplot(1,2,2); stem3(4*rand(5))