Code covered by the BSD License  

Highlights from
MatClust

image thumbnail

MatClust

by

 

28 Dec 2012 (Updated )

Spike sorting program for extracellular recordings. Version 1.4

allruns()
function out = allruns()

global clustdata;
global clustattrib;


names = lower(clustdata.timefilternames);
hits = strfind(names, 'run');
hitvector = [];
out = false(length(clustdata.params(:,1)),1);
for i = 1:length(hits);
   if (~isempty(hits{i}))
      hitvector(i) = 1;
   else
      hitvector(i) = 0;
   end
end


hitindex = find(hitvector);
for i = hitindex
   out(find((clustdata.params(:,1) >= clustdata.timefilterranges(i,1)) & (clustdata.params(:,1) <= clustdata.timefilterranges(i,2)))) = true;
end



    
    
    

Contact us