I want show population on plot like 36M, 37M....
Ältere Kommentare anzeigen
please help me, I=I need the grow population like 36m, 37, 38,.. on plot 

Akzeptierte Antwort
Weitere Antworten (1)
Walter Roberson
am 18 Jun. 2024
Verschoben: Walter Roberson
am 18 Jun. 2024
Alternate solution:
P = [3.6e7, 3.8e7, 4.1e7, 4.5e7, 5.0e7]; % just making up some numbers
t = 1970:10:2010;
ax = gca;
plot(ax, t,P,'-o')
xlabel(ax, 'Years')
ylabel(ax, 'Population in Millions')
yticklabels(ax, compose("%gM", floor(ax.YTick/1e6)))
1 Kommentar
Ghazi
am 18 Jun. 2024
Kategorien
Mehr zu Mathematics 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!

