Code covered by the BSD License  

Highlights from
rotateXLabels

4.5

4.5 | 2 ratings Rate this file 14 Downloads (last 30 days) File Size: 4.8 KB File ID: #45172
image thumbnail

rotateXLabels

by

 

Rotate the X Tick Label Text

| Watch this File

File Information
Description

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

Required Products MATLAB
MATLAB release MATLAB 8.0 (R2012b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (3)
07 Mar 2014 Haosense Xu

not bad.Thanks!

28 Jan 2014 Kenzo

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

22 Jan 2014 Rainer  

Contact us