Different way of displaying numbers

1 回表示 (過去 30 日間)
kyrresc
kyrresc 2016 年 3 月 5 日
回答済み: kyrresc 2016 年 3 月 6 日
Hello,
in my code I have numbers like 10^-3. How can I display this in decimal form, i.e 0.001?

採用された回答

Chad Greene
Chad Greene 2016 年 3 月 5 日
Try this for three decimal places:
num2str(pi,'%0.3f')

その他の回答 (1 件)

kyrresc
kyrresc 2016 年 3 月 6 日
None of it worked. It's within an sprintf, if that helps.

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by