how to prevent matlab to rounding numbers during excel read

2 vues (au cours des 30 derniers jours)
Surendra Sharma
Surendra Sharma le 3 Juil 2017
Modifié(e) : Stephen23 le 3 Juil 2017
I am reading this value 702438.0482 from excel but Matlab reading it as 7.0247e+05. How can I get original value i.e. 702438.482
  1 commentaire
Stephen23
Stephen23 le 3 Juil 2017
Modifié(e) : Stephen23 le 3 Juil 2017
@Surendra Sharma: do not confuse the value that is stored in memory and the value that is displayed in the command window. These are two quite different things.

Connectez-vous pour commenter.

Réponses (1)

John D'Errico
John D'Errico le 3 Juil 2017
MATLAB did NOT round the number. You misunderstand the difference between how MATLAB displays a number, and what is stored.
help format
My preference is usually short g, because I don't want to see long strings of digits. But in order to see the full details
format long g
is usually best.

Community Treasure Hunt

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

Start Hunting!

Translated by