How to display result in matlab without this format 1.0253e+04?

4 次查看(过去 30 天)
I wanna display the result as real number

回答(2 个)

Star Strider
Star Strider 2017-11-19
Consult the documentation on the format (link) function.
  2 个评论
Eliza
Eliza 2017-11-19
I already used them here is the result format long >> ans
ans =
1.025280000000000e+04
Star Strider
Star Strider 2017-11-19
Try this:
format short g
x = 1.025280000000000e+04
y = -2.95397040162016e-12
x =
10253
y =
-2.954e-12
At some point, format defaults to exponential notation, regardless.

请先登录,再进行评论。


Image Analyst
Image Analyst 2017-11-19
编辑:Image Analyst 2017-11-19
Try issuing this command
format longg;
  4 个评论

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 File Operations 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by