0

What does the following statement mean?

"MATLAB cannot round non-zero entries to specific decimal place, because of that there will always be leftovers around 1e-16 for doubles (double precision variables) and 1e-12 for singles."

EXAMPLE:

time(3001)=0 and find(time==0)=3001
but time(3000)=-1e4 and find(time==-1e4) = []
because time(3000) + 1e-4 = -2.11e-16 and single(time(3000)) + 1e-4 = 2.53e-12
.

Sardar Usama
  • 19,536
  • 9
  • 36
  • 58

0 Answers0