I have two waveforms in the time domain, of which I need to measure the cross-correlation coefficient in MATLAB. I have tried max(abs(xcorr(m,n,'coeff')))
but it doesn't seem to be working properly.
Also I need to measure the cross correlation coefficient for different sections of the waveform, e.g. measure the cross correlation coefficient at 1 minute intervals. And if possible output these values to a matrix or something.
I know this is a lot to ask but I'm a MATLAB novice and find this task daunting!
Any help you could give me on any section of this question would be gratefully received.
EDIT: This is the code I used to test the correlation code:
x = rand(1,14400);
y = rand(1,14400);
r = max( abs(xcorr(x,y,'coeff')) )