How can I avert that matlab round off the number?

조회 수: 3 (최근 30일)
Edoardo
Edoardo 2012년 11월 4일
Hi:
How can I avert that matlab round off in the plot the number. If I add as input this:1672324.884 in my plot appears 167*10^4.
Thanks
  댓글 수: 1
Jan
Jan 2012년 11월 4일
Please post the corresponding code. "Adding 1672324.884 in your plot" is nothing, which is reproducible directly. I assume you are talking about the tick labels...

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

채택된 답변

Matt J
Matt J 2012년 11월 4일
Zoom in on the plot (using the spyglass toolbar icon) to see the number with more precision.

추가 답변 (1개)

Walter Roberson
Walter Roberson 2012년 11월 4일
If you set the xticklabel or yticklabel (as appropriate) property for the plot axis, then MATLAB will not show exponential format. You can format your ticks as you find appropriate.
set(gca, 'XTickLabel', str2num(reshape(get(gca, 'XTick'), [], 1), '%12.3f'))

카테고리

Help CenterFile Exchange에서 Grid Lines, Tick Values, and Labels에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by