How to make this a real number

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

0 votos

x=1.3357e+03;
out=sprintf('%.1f',x)

Más respuestas (2)

Categorías

Productos

Etiquetas

Preguntada:

el 30 de Nov. de 2012

Comentada:

el 20 de Dic. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by