Issue when removing scientific notation in Matlab plot

조회 수: 2 (최근 30일)
NC
NC 2016년 5월 4일
댓글: Nikhil Sreekumar 2016년 8월 11일
I am trying to configure the yticklabels to appear on the graph in a non scientific notation format. My original plot looks like:
In order to remove the scientific notation, I have tried:
set(gca,'YTickLabel',num2str(get(gca,'YTick').'))
and I get the following result:
As it can be seen here, this does not make any sense as the y axis values should increase.
I also tried the following code:
yt=get(gca,'YTick');
set(gca,'YTickLabel',sprintf('%.1f\n',yt))
and I get the following result:
As it can be seen, this does not make sense either. The top label is missing.
I cannot find the way to get it right. Any help would be appreciated.
  댓글 수: 1
Nikhil Sreekumar
Nikhil Sreekumar 2016년 8월 11일
Which version of MATLAB are you using and can you attach the data used?

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by