%filters data and plots power spectrum for 64 electrode array
%requires raw data and sampling frequency

function [data] = PlotCrossCorr6( wave, wave1);


[waveCorr,lags] = xcov(wave,wave1,500,'coeff');


plot(lags, waveCorr); axis([-500 500 -1 1]); %axis off; %grid on; 

[C,I]=max(waveCorr)



   
 