subtract very small value

4 visualizaciones (últimos 30 días)
Maro
Maro el 22 de Mayo de 2015
Respondida: Star Strider el 22 de Mayo de 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?

Respuesta aceptada

Star Strider
Star Strider el 22 de Mayo de 2015
Use the format function. You may want to use format longE.

Más respuestas (0)

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by