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

    %% Specify z-Axis Tick Values for Specific Axes
% Create a figure with two subplots and return the axes objects as |ax1|
% and |ax2|. Set the _z_-axis tick values for the left subplot
% by passing |ax1| as the first input argument to the |zticks| function.

ax1 = subplot(1,2,1);
stem3(4*rand(5))
zticks(ax1,[0 1.5 3.25])

ax2 = subplot(1,2,2);
stem3(4*rand(5))