Borrar filtros
Borrar filtros

How to display result in matlab without this format 1.0253e+04?

4 visualizaciones (últimos 30 días)
Eliza
Eliza el 19 de Nov. de 2017
Comentada: Stephen23 el 19 de Nov. de 2017
I wanna display the result as real number

Respuestas (2)

Star Strider
Star Strider el 19 de Nov. de 2017
Consult the documentation on the format (link) function.
  2 comentarios
Eliza
Eliza el 19 de Nov. de 2017
I already used them here is the result format long >> ans
ans =
1.025280000000000e+04
Star Strider
Star Strider el 19 de Nov. de 2017
Try this:
format short g
x = 1.025280000000000e+04
y = -2.95397040162016e-12
x =
10253
y =
-2.954e-12
At some point, format defaults to exponential notation, regardless.

Iniciar sesión para comentar.


Image Analyst
Image Analyst el 19 de Nov. de 2017
Editada: Image Analyst el 19 de Nov. de 2017
Try issuing this command
format longg;
  4 comentarios
Eliza
Eliza el 19 de Nov. de 2017
does this value mean -2.95397040162016 *10^-12?

Iniciar sesión para comentar.

Categorías

Más información sobre File Operations en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by