y axis values - change the display
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi,
I have values on y axis which ranges from 0 to 160000. The value for 80000 (for example) is displayed as 8 (*10^4)
How can I change so that the values would be displayed as non scientific number (i.e 80,000)
0 Kommentare
Antworten (1)
Simon Chan
am 24 Okt. 2021
Bearbeitet: Simon Chan
am 24 Okt. 2021
Modify the yticklabel as follows:
% plot something
ax = gca;
yticklabels(arrayfun(@(x) sprintf('%d',x),ax.YTick,'uni',0))
3 Kommentare
Simon Chan
am 5 Dez. 2021
Sorry, I don't have such Matlab version and hence unable to give you an answer.
Siehe auch
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!