How to make this a real number

4 次查看(过去 30 天)
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.

采纳的回答

Azzi Abdelmalek
Azzi Abdelmalek 2012-11-30
x=1.3357e+03;
out=sprintf('%.1f',x)

更多回答(2 个)

Jurgen
Jurgen 2012-11-30
sprintf?

Walter Roberson
Walter Roberson 2012-11-30

类别

Help CenterFile Exchange 中查找有关 Convert Image Type 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by