Convert Value from form to another

1 回表示 (過去 30 日間)
Majid Al-Sirafi
Majid Al-Sirafi 2013 年 9 月 22 日
H everyone
when I execute my program the output is shown as follows:
9.0295e-005
I want to be as follows:
0.0000903
Thanks
  1 件のコメント
Majid Al-Sirafi
Majid Al-Sirafi 2013 年 9 月 22 日
x = 9.0295e-005
sprintf('%9.7f',x) figure
title(['Root Mean Square Error=',num2str(RMSE_coordinates)])

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

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 9 月 22 日
sprintf('%.7f',9.0295e-005)
  1 件のコメント
Majid Al-Sirafi
Majid Al-Sirafi 2013 年 9 月 22 日
OK
thanks

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

その他の回答 (1 件)

the cyclist
the cyclist 2013 年 9 月 22 日
x = 9.0295e-005
sprintf('%9.7f',x)
  1 件のコメント
Majid Al-Sirafi
Majid Al-Sirafi 2013 年 9 月 22 日
OK thanks

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

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by