Azzera filtri
Azzera filtri

Comparing very small numbers

2 visualizzazioni (ultimi 30 giorni)
Saptarshi Bhattacharjee
Saptarshi Bhattacharjee il 23 Gen 2012
Risposto: Voss il 28 Dic 2021
I have a code where I have to compare between very small numbers. I have a function where I input two values and it gives me the result, which I have to compare with 0. Generally the results are very small, and hence I am not getting accurate results. Any help in this plzz??
  1 Commento
Walter Roberson
Walter Roberson il 23 Gen 2012
What are you seeing, and what would you consider to be "accurate results" for your situation? Also, how small is "very small" ?

Accedi per commentare.

Risposte (1)

Voss
Voss il 28 Dic 2021
Look into using eps() for this.

Categorie

Scopri di più su Cell Arrays 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