How can I avert that matlab round off the number?
1 回表示 (過去 30 日間)
古いコメントを表示
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
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
2012 年 11 月 4 日
Zoom in on the plot (using the spyglass toolbar icon) to see the number with more precision.
0 件のコメント
その他の回答 (1 件)
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'))
0 件のコメント
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!