You can try this link: http://www.mathworks.com/matlabcentral/fileexchange/27812-rotate-x-axis-tick-labels/content/rotateXLabels.m
It provides a function to do just that.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!