How to fit num2str into labeling ??
Ältere Kommentare anzeigen
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
Akzeptierte Antwort
Weitere Antworten (2)
Kategorien
Mehr zu Axis Labels finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!