ATTENTION!!

We have encountered a strange inconsistency between MACintosh computers and other models related to the cross-correlation function xcorr of Matlab!
We have contacted The Mathworks on this issue and we are trying to resolve it as soon as possible!


The error occurs as follows: assume the following code:

%%%BEGIN CODE%%%
z1 = [0 0 1 0 0];
z2 = [0 1 0 0 0];
C = xcorr(z1,z2, 'coeff');

[a,b] = max(C)
%%%END CODE%%%

Then, we would expect the output:


a =
    1

b =
    6

This is the result on Windows and Linux machines as well as some MAC versions. But there has been reports, that some MACs give


a =
    1

b =
    4

Please test the above test code on your machine and compare the output.
If the return is b = 4, contact us! We have a little workaround :-)