www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/DisplayzAxisTickLabelsInDollarsExample.m
%% Display _z_-Axis Tick Labels in Dollars % Create a 3-D stem chart of random data. Display the tick labels along the % _z_-axis in US dollars. z = 10*rand(5); stem3(z) ztickformat('usd') %% % Query the tick label format. MATLAB(R) returns the format as a character % vector containing the formatting operators. fmt = ztickformat %% % Display the tick labels with no decimal values by tweaking the numeric % format to use a precision value of 0 instead of 2. ztickformat('$%,.0f')