Scientific notation at y-axis with yticks/yticklabels
81 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Mepe
am 8 Jun. 2021
Beantwortet: Joseph Cheng
am 8 Jun. 2021
I want to change the notation of the y-axis using the commands "yticks" and
"yticklabels". But here I would like to use the scientific notation.
Is this changeable?
0 Kommentare
Akzeptierte Antwort
Joseph Cheng
am 8 Jun. 2021
from the looks of it the desired state is also plotting in a log10. you can change the current axis by
set(gca,'yscale','log')
or if you only desire to have 10^X exponent style axis ticks labeling then you can
y = rand(10,1);
figure(1),plot(y)
ax = gca;
ax.YAxis.Exponent = 2
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Axis Labels 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!