Scheduled service maintenance on November 22


On Friday, November 22, 2024, between 06:00 CET and 18:00 CET, GIN services will undergo planned maintenance. Extended service interruptions should be expected. We will try to keep downtimes to a minimum, but recommend that users avoid critical tasks, large data uploads, or DOI requests during this time.

We apologize for any inconvenience.

spike-field-coherenceMBL2005.m 733 B

12345678910111213141516171819
  1. [fname,pname]=uigetfile('*');
  2. eval(['load ' pname '\' fname]);
  3. params.tapers=[5 9]; params.pad=2; params.Fs=1000; params.fpass=[0 100]; params.trialave=1;
  4. movingwin=[0.5 0.1]; % duration of moving window used to evaluate spectrograms
  5. win=[2 2]; % window around events
  6. fignum=[2 3 6 9 8 7 4 1]; % figure numbers for particular directions
  7. for targ=0:7;
  8. E=targoff(find(targets==targ));
  9. datasp=createdatamatpt(dsp(1),E,win);
  10. datalfp=createdatamatc(dlfp(:,1),E,Fs,win);
  11. [C,phi,S12,S1,S2,t,f,zerosp]=cohgramcpt(datalfp,datasp,movingwin,params); % Note cohgramcpt does give you spectra but not the errors.
  12. subplot(3,3,fignum(targ+1));imagesc(t,f,C'); axis xy; colorbar;
  13. end;