Code got jumbled in the copy-paste. sorry
numbers = magic(5)
labels = {'label 1', 'label 2', 'label 3', 'label 4', 'label 5'};
bar(numbers(:,1))
set(gca, 'XTickLabel', labels)
rotateXLabels(gca, 45);
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!