%% Tick Label Format for Specific Axes
% Create a figure with two subplots and return the axes objects as ax1 and ax2. Specify the tick label format for the x-axis of the lower subplot by specifying ax2 as the first input argument to xtickformat. Display the tick labels in U.S. dollars.

ax1 = subplot(2,1,1);
plot(rand(6))

ax2 = subplot(2,1,2);
plot(rand(6))
xtickformat(ax2,'usd')

% Copyright 2012 The MathWorks, Inc.