Convert Value from form to another

3 visualizzazioni (ultimi 30 giorni)
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 Commento
Majid Al-Sirafi
Majid Al-Sirafi il 22 Set 2013
x = 9.0295e-005
sprintf('%9.7f',x) figure
title(['Root Mean Square Error=',num2str(RMSE_coordinates)])

Accedi per commentare.

Risposta accettata

Azzi Abdelmalek
Azzi Abdelmalek il 22 Set 2013
sprintf('%.7f',9.0295e-005)

Più risposte (1)

the cyclist
the cyclist il 22 Set 2013
x = 9.0295e-005
sprintf('%9.7f',x)

Categorie

Scopri di più su Mathematics in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by