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

function [f] = PlotCohere6( wave, data );


figure

[waveCohere,f] = cohere(wave,data,256,1000);
 plot(f, waveCohere); axis([0 50 0 1]); %axis off;
[C,I]=max(waveCohere)


%figure
%%interp_L=interp2(amp,4,'linear');
%imagesc(interp_L); colorbar('vert'); %axes off;
%caxis([0 1]) 
%axis('image')
%axis('off')