フィルターのクリア

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

4 ビュー (過去 30 日間)
Eliza
Eliza 2017 年 11 月 19 日
コメント済み: Stephen23 2017 年 11 月 19 日
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 件のコメント
Eliza
Eliza 2017 年 11 月 19 日
does this value mean -2.95397040162016 *10^-12?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeFile Operations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by