subtract very small value

6 visualizzazioni (ultimi 30 giorni)
Maro
Maro il 22 Mag 2015
Risposto: Star Strider il 22 Mag 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?

Risposta accettata

Star Strider
Star Strider il 22 Mag 2015
Use the format function. You may want to use format longE.

Più risposte (0)

Categorie

Scopri di più su Startup and Shutdown 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