%% Specify x-Axis Tick Labels for Specific Axes
% Create a figure with two subplots and return the axes objects as ax1 and ax2. Plot random data in each subplot. Set the x-axis tick values and labels for the second subplot by specifying ax2 as the first input argument.

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

ax2 = subplot(2,1,2);
plot(rand(3))
xticks(ax2,[1 2 3])
xticklabels(ax2,{'one','two','three'})

%
% Copyright 2012 The MathWorks, Inc.