How to display Decimal number without e (x.xxxxxe-xx) in a matrix

29 ビュー (過去 30 日間)
Helen Lee
Helen Lee 2020 年 4 月 14 日
回答済み: Walter Roberson 2020 年 4 月 14 日

回答 (1 件)

Walter Roberson
Walter Roberson 2020 年 4 月 14 日
Use compose() with a string as the format.
>> compose("%.8f", [0.162109;-0.03215;7.20248e-05])
ans =
3×1 string array
"0.16210900"
"-0.03215000"
"0.00007202"

カテゴリ

Help Center および File ExchangeNumeric Types についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by