How to fit num2str into labeling ??
Show older comments
Hi Guys
I have trouble with using num2str for labeling x-axis. I'm doing this for get each number of SR on equivalent x-axis. Can anybody tell me what I'm doing wrong ? Now I get the same number of SR in all x-axis.
SR=[23 15 16 17 11] for i=1:length(SR) set(gca, 'XTick',1:length(SR), 'XTickLabel',{num2str(SR(i))}) end
Isa
Accepted Answer
More Answers (2)
Categories
Find more on Axis Labels in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!