format the x-axis at plotting (have x10^5) at the end
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello,
I have a quick question: how do I have matlab print the x-axis in the form of say: 1, 2, 3, 4, 5 and then at the end it prints x10^5 (the five appears as a superscript)
Thanks
0 Kommentare
Akzeptierte Antwort
Wayne King
am 25 Dez. 2012
Can you get it to work by using a combination of the way you define the x-axis and the XTick property?
x = 1e5:1e5:5e5;
y = randn(5,1);
plot(x,y,'b-o')
set(gca,'xtick',1e5:1e5:5e5);
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Annotations 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!