How to display result in matlab without this format 1.0253e+04?
4 次查看(过去 30 天)
显示 更早的评论
I wanna display the result as real number
0 个评论
回答(2 个)
Star Strider
2017-11-19
2 个评论
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.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 File Operations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!