Different way of displaying numbers

2 visualizzazioni (ultimi 30 giorni)
kyrresc
kyrresc il 5 Mar 2016
Risposto: kyrresc il 6 Mar 2016
Hello,
in my code I have numbers like 10^-3. How can I display this in decimal form, i.e 0.001?

Risposta accettata

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

Più risposte (1)

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

Categorie

Scopri di più su Startup and Shutdown in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by