Different way of displaying numbers

2 vues (au cours des 30 derniers jours)
kyrresc
kyrresc le 5 Mar 2016
Hello,
in my code I have numbers like 10^-3. How can I display this in decimal form, i.e 0.001?

Réponse acceptée

Chad Greene
Chad Greene le 5 Mar 2016
Try this for three decimal places:
num2str(pi,'%0.3f')

Plus de réponses (1)

kyrresc
kyrresc le 6 Mar 2016
None of it worked. It's within an sprintf, if that helps.

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by