subtract very small value

6 vues (au cours des 30 derniers jours)
Maro
Maro le 22 Mai 2015
when I subtract a very value small from another value. the answer remain the same as if I did not subtract any value for example if I subtract 1.9512e-005 from 1.5 the answer is 1.5 ...how do I enforce the matlab to output the correct answer?

Réponse acceptée

Star Strider
Star Strider le 22 Mai 2015
Use the format function. You may want to use format longE.

Plus de réponses (0)

Catégories

En savoir plus sur Startup and Shutdown dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by