フィルターのクリア

Change the expression of number

2 ビュー (過去 30 日間)
Quynh tran
Quynh tran 2017 年 5 月 24 日
コメント済み: Quynh tran 2017 年 5 月 25 日
Dear all,
I have this number
A=0.1235689745654
but when I need to show it, just only 4 number after dot "." was shown like this.
A =0.1236
But I want it's shown like this
A=0.1235689745654
Could you help me to fix it. Thanks

採用された回答

Walter Roberson
Walter Roberson 2017 年 5 月 24 日
format long g
and then display the number
  5 件のコメント
Walter Roberson
Walter Roberson 2017 年 5 月 25 日
fprintf('%.15g', A)
Quynh tran
Quynh tran 2017 年 5 月 25 日
Thank you so much @Walter Roberson

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by