Borrar filtros
Borrar filtros

How to make this a real number

2 visualizaciones (últimos 30 días)
kyin gab
kyin gab el 30 de Nov. de 2012
Comentada: Hasan el 20 de Dic. de 2022
Hello,
My MatLab code outputs this 1.3357e+03 and I think this can be converted to a number like 1335.7.
I would like the MatLab function that will help me convert it.
Thanks for your help.

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 30 de Nov. de 2012
x=1.3357e+03;
out=sprintf('%.1f',x)
  1 comentario
kyin gab
kyin gab el 30 de Nov. de 2012
Azzi, Matt, Walter Jurgen, thanks guys

Iniciar sesión para comentar.

Más respuestas (2)

Jurgen
Jurgen el 30 de Nov. de 2012
sprintf?

Walter Roberson
Walter Roberson el 30 de Nov. de 2012
format long g

Categorías

Más información sobre Convert Image Type en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by