Decimal format for values less than 1
Mostrar comentarios más antiguos
I want to get the answer in decimal format...like x = 0.000015. Matlab shows it 1.5000e-05...
Respuestas (1)
Star Strider
el 30 de Mzo. de 2018
0 votos
4 comentarios
Tausif Raza
el 30 de Mzo. de 2018
Star Strider
el 30 de Mzo. de 2018
Unless you want to write your own sprintf calls, format is the only option I know of.
Walter Roberson
el 30 de Mzo. de 2018
format long g
helps, but only up to 3 zeros before the first digit.
For smaller numbers, you need to sprintf() or fprintf()
Tausif Raza
el 31 de Mzo. de 2018
Categorías
Más información sobre MATLAB en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!