How to change x-axis values?

조회 수: 5 (최근 30일)
Catayoun Lissa Eleonore Azarm
Catayoun Lissa Eleonore Azarm 2020년 12월 15일
편집: VBBV 2020년 12월 15일
Hello guys,
Matlab automatically put the x-axis values into x10 format. For example 1.96 x10^7 instead of 1996. This is wrong.
How can I make x-axis values to look like whole number values i.e. 1996, 1998 etc?
Thank you.

답변 (1개)

Daniel Pollard
Daniel Pollard 2020년 12월 15일
This was the top result when I googled "matlab remove scientific notation axis".
From R2015b onwards,
ax = gca;
ax.XRuler.Exponent = 0;
  댓글 수: 14
Catayoun Lissa Eleonore Azarm
Catayoun Lissa Eleonore Azarm 2020년 12월 15일
ok thank you anyways for your help!
VBBV
VBBV 2020년 12월 15일
편집: VBBV 2020년 12월 15일
You have to apply same to
%
subplot(5,3,1)
subplot(5,3,6)
subplot(5,3,11)

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

카테고리

Help CenterFile Exchange에서 Subplots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by