Scientific notation at y-axis with yticks/yticklabels
80 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Joseph Cheng
2021-6-8
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Axis Labels 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!