%% Query Current Angle for x-Axis Tick Labels
% Create a stem chart. Then, query the rotation angle for the x-axis tick labels. By default, the labels are not rotated.

x = linspace(0,10000,21);
y = x.^2;
stem(x,y)

%

ang = xtickangle

% Copyright 2012 The MathWorks, Inc.