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

[x,y,z] = peaks;
surf(peaks)

%

ang = ztickangle

% Copyright 2012 The MathWorks, Inc.