How to make this a real number
Show older comments
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.
1 Comment
Hasan
on 20 Dec 2022
vpa(ans)
Accepted Answer
More Answers (2)
Jurgen
on 30 Nov 2012
0 votes
sprintf?
Walter Roberson
on 30 Nov 2012
format long g
1 Comment
Matt Fig
on 30 Nov 2012
Even
format short g
gets it.
Categories
Find more on Logical in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!