y axis values - change the display

Hi,
I have values on y axis which ranges from 0 to 160000. The value for 80000 (for example) is displayed as 8 (*10^4)
How can I change so that the values would be displayed as non scientific number (i.e 80,000)

답변 (1개)

Simon Chan
Simon Chan 2021년 10월 24일
편집: Simon Chan 2021년 10월 24일

0 개 추천

Modify the yticklabel as follows:
% plot something
ax = gca;
yticklabels(arrayfun(@(x) sprintf('%d',x),ax.YTick,'uni',0))

댓글 수: 3

michael
michael 2021년 10월 24일
I have old Matlab version - R14SP3.
Do you have any solution for that one?
michael
michael 2021년 12월 5일
@Simon Chan Can you please assist?
Simon Chan
Simon Chan 2021년 12월 5일
Sorry, I don't have such Matlab version and hence unable to give you an answer.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Annotations에 대해 자세히 알아보기

태그

질문:

2021년 10월 24일

댓글:

2021년 12월 5일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by