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.
x=1.3357e+03; out=sprintf('%.1f',x)
Direct link to this comment:
http://mathworks.com/matlabcentral/answers/55314#comment_114616
Azzi, Matt, Walter Jurgen, thanks guys
Direct link to this answer:
http://mathworks.com/matlabcentral/answers/55314#answer_67125
sprintf?
http://mathworks.com/matlabcentral/answers/55314#answer_67121
format long g
http://mathworks.com/matlabcentral/answers/55314#comment_114614
Even
format short g
gets it.
http://mathworks.com/matlabcentral/answers/55314#answer_67124
Contact us
0 Comments