help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Octave 4.0.3: normxcorr2 producing unexpected result


From: Kire Pudsje
Subject: Re: Octave 4.0.3: normxcorr2 producing unexpected result
Date: Fri, 24 Mar 2017 06:58:17 +0100

 Columns 1 through 8:

   1.00000  -0.50000  -0.50000  -1.00000  -0.50000  0.00000   1.00000
0.86603

According to this output, we can see there are maximums at indexes 1, 7 and
14. Strangely, `[val index] = max(c)` returns index 7 instead of 1 or 14.

I really feel there is a bug somewhere....

Remember that we are dealing with floating points here, so 1.000.... != 1.000.....
If we subtract eg x(7) from x(1) we get
ans =  -1.1102e-016


reply via email to

[Prev in Thread] Current Thread [Next in Thread]