What is the difference between:
- 1) xcov(x,y,10,'unbiased')/sqrt(xcov(x,x,0,'unbiased')*xcov(y,y,0,'unbiased'));
- 2) xcorr(x,y,10,'unbiased');
- 3) [A, B] = crosscorr(x,y,10);
?
I think (but I am not sure) that "crosscorr" removes the means and "xcorr" doesn't, but i don't get why the first one gives a completely different answer compared to the others. Am I using a wrong formula in 1)?
Thank you very much