Scientific notation at y-axis with yticks/yticklabels
조회 수: 55 (최근 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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/646370/image.png)
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!