load('C:\Users\USER\Documents\mingfaifong\2013-02-10_yam21367_10-13DIV_MEA_6well\yam21367_10-12DIV.mat')

excludechannels = [1 6 8 11 32 33 54 57 59 64];
w(1,:) = [3 4 5 12 13 20 21 28 29];
w(2,:) = [7 14 15 16 22 23 24 30 31];
w(3,:) = [38 39 40 46 47 48 55 56 63];
w(4,:) = [36 37 44 45 52 53 60 61 62];
w(5,:) = [34 35 41 42 43 49 50 51 58];
w(6,:) = [2 9 10 17 18 19 25 26 27];
excludechannels = horzcat(excludechannels,w(1,:),w(2,:),w(3,:),w(4,:),w(5,:));

ind = find(ismember(channel,excludechannels)==0);
time = time(ind);
channel = channel(ind);
unit = unit(ind);
% threshold = threshold(ind);

save yam21367F_10-12DIV time channel unit