[an error occurred while processing this directive]
|
...
srednee=mean(variable);
h = variable(1:end,1)-srednee(1,1);
j = variable(1:end,2)-srednee(1,2);
y=xcorr(h(1:end,1),j(1:end,1),'unbiased');
len = length(h)-1;
x = -len:len;
plot(x, y);
title ('cross-correlation');
grid on;