Convert Value from form to another

2 vues (au cours des 30 derniers jours)
Majid Al-Sirafi
Majid Al-Sirafi le 22 Sep 2013
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 commentaire
Majid Al-Sirafi
Majid Al-Sirafi le 22 Sep 2013
x = 9.0295e-005
sprintf('%9.7f',x) figure
title(['Root Mean Square Error=',num2str(RMSE_coordinates)])

Connectez-vous pour commenter.

Réponse acceptée

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

Plus de réponses (1)

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

Community Treasure Hunt

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

Start Hunting!

Translated by