Code covered by the BSD License

### Highlights from rotateXLabels

4.66667
4.7 | 3 ratings Rate this file 26 Downloads (last 30 days) File Size: 4.8 KB File ID: #45172 Version: 1.0

# rotateXLabels

### Kyle Andringa (view profile)

Rotate the X Tick Label Text

File Information
Description

This function rotates the orientation of the XTickLabel by specifying a rotation angle in degrees.

Acknowledgements

This file inspired X Yrotalabel Rotate X Axis And Y Axis Labels.

Required Products MATLAB
MATLAB release MATLAB 8.0 (R2012b)
24 Feb 2016 Luis Faria

### Luis Faria (view profile)

07 Mar 2014 Haosense Xu

### Haosense Xu (view profile)

28 Jan 2014 Kenzo

### Kenzo (view profile)

Hello Everybody!
I use matlab 8.0.0.783 (R2012b) and want to rotate value on x-axis, but I get the message below:
'Undefined function 'rotateXLabels' for input arguments of type 'double'.'
Here is my code:

lower = [0 50 300 500 1000 2000 3000 4000 5000 6000 7000 8000];
upper = [50 300 500 1000 2000 3000 4000 5000 6000 7000 8000 9000];

total = zeros(1,length(lower)); % number of BSs with this Power

Tx_power = Tx_Pow10;%(Tx_Pow10 > 19);

for i = 1:length(lower)
total(i) = length(find(Tx_power > lower(i) & Tx_power <= upper(i)));
end
figure(1);
bar(total);
set(gca,'xTickLabel',{'0-0.049','0.05-0.29','0.3-0.49','0.5-0.99','1-1.9','2-2.9','3-3.9','4-4.9','5-5.9','6-6.9','7-7.9','8-9'});
rotateXLabels(gca(),45);

the command doc rotateXLabels doesn't find anything about rotateXLabels.
I'm wondering if my matlab version old or what I'm doing wrong. Can u help me please?
I also tried xticklabel_rotate, rotateticklabel, but I get the same issue
Thanks

Comment only
22 Jan 2014 Rainer