Different way of displaying numbers

3 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by