convert (1.0e+04 *x) to (normal)

117 ビュー (過去 30 日間)
Max Müller
Max Müller 2014 年 8 月 5 日
コメント済み: Asif Newaz 2017 年 8 月 12 日
Hey Guys, I ve created a function which gives me a [1:255] Array of numbers. However the Output looks like this:
1.0e+04 *
0.0262 0.1144 0.1206 0.0315 0.0328 0.0083 0.0007 0.0005 0.0002 0.0001 0.0002 0.0061 0.0001
I really dont like this .... how can i fix it ?
  1 件のコメント
Asif Newaz
Asif Newaz 2017 年 8 月 12 日
use format / format shortG / format compact

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

採用された回答

Friedrich
Friedrich 2014 年 8 月 5 日
編集済み: Friedrich 2014 年 8 月 5 日
Hi,
have a look at the format function. Maybe "format shortG" does what you want:
>> a
a =
1.0e+04 *
7.5127 6.9908 5.4722
2.5510 8.9090 1.3862
5.0596 9.5929 1.4929
>> format shortG
>> a
a =
75127 69908 54722
25510 89090 13862
50596 95929 14929
If not there are other formats available too which you can try.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Type Conversion についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by