How do I control exponent in plot

조회 수: 4 (최근 30일)
Marek Raclavsky
Marek Raclavsky 2020년 12월 4일
댓글: Ameer Hamza 2020년 12월 4일
When I plot a figure, Matlab automatically chooses e.g. x10^17 scale, but I would like the results to be displayed in x10^18 scale. Is there any way how can I change it without doing it manually with xtickslabel? Thanks

채택된 답변

Ameer Hamza
Ameer Hamza 2020년 12월 4일
You need to set the exponent property of x-axis'. Something like this
ax = gca;
ax.XAxis.Exponent = 18;
  댓글 수: 2
Marek Raclavsky
Marek Raclavsky 2020년 12월 4일
Thank you very much!
Ameer Hamza
Ameer Hamza 2020년 12월 4일
I am glad to be of help!

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

추가 답변 (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