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

    %% Specify _z_-Axis Tick Label Format for Specific Axes
% Create a figure with two subplots and return the axes objects as |ax1|
% and |ax2|. Specify the _z_-axis tick label format for the left subplot by
% specifying |ax1| as the first input argument to |ztickformat|. Display
% the tick labels in US dollars.

ax1 = subplot(1,2,1);
stem3(4*rand(5))
ztickformat(ax1,'usd')

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