how to stop scientific notation in matrix

125 ビュー (過去 30 日間)
lee
lee 2014 年 11 月 2 日
コメント済み: Star Strider 2018 年 10 月 18 日
when displaying a matrix i just want it to display it wit whole numbers and decimals but is comes out like this.
Money =
1.0e+05 *
Columns 1 through 7
1.0000 1.0500 1.1025 1.1576 1.2155 1.2763 1.3401
Columns 8 through 11
1.4071 1.4775 1.5513 1.6289
How do i change the format

採用された回答

Star Strider
Star Strider 2014 年 11 月 2 日
See the options in the format function.
  2 件のコメント
Nathan Porter
Nathan Porter 2018 年 10 月 18 日
The option that the OP is looking is something like:
format shortG
Star Strider
Star Strider 2018 年 10 月 18 日
... or, since the array is named ‘Money’, perhaps
format bank

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

その他の回答 (2 件)

Nathan Porter
Nathan Porter 2018 年 10 月 18 日
format shortG

Stavros Skouras
Stavros Skouras 2018 年 6 月 20 日
format bank %(in R2018a)
  1 件のコメント
Walter Roberson
Walter Roberson 2018 年 6 月 21 日
Note that would use exactly two decimals.

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

カテゴリ

Help Center および File ExchangeElementary Math についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by