clear all;
fpath = 'C:\Users\USER\Documents\mingfaifong_tmp\2011.02.28 Chronic AMPAR Blockade & Recovery (Hamburger)\hamburger360 (NR)\';
fid = 'hamburger360_2011_02_28_cnqx-20uM-2011-03-01-20-33-26.spk';
ranges = [0 100; 600 700; 1200 1300; 1750 1850];
numspk = nan(1,64);

for j = 1:size(ranges,1)
    x = loadspike([fpath fid],ranges(j,:));
    for i = 1:64
        numspk(i) = length(find(x.channel==i));
    end
    totalspk = length(x.channel);
    ind_highspkchan = find(numspk > totalspk/10);
    %keyboard;
    
    %ranges(j,:);
    highspkchan = [ind_highspkchan; numspk(ind_highspkchan)/totalspk]
end