% 19DIV
load('C:\Users\Jon\Desktop\mingledorf\2012-09-04_fatty21368_19DIV_MEA_6well\fatty21368_19DIV_nodrug_01.mat');
tmp.time = -time;
tmp.channel = channel;
tmp.unit = unit;
tmp.threshold = threshold;

% 20DIV
load('C:\Users\Jon\Desktop\mingledorf\2012-09-04_fatty21368_19DIV_MEA_6well\fatty21368_20DIV_drugs_01.mat');
tmp.time = [tmp.time; time(time<=24*3600)];
tmp.channel = [tmp.channel; channel(time<=24*3600)];
tmp.unit = [tmp.unit; unit(time<=24*3600)];
tmp.threshold = [tmp.threshold; threshold(time<=24*3600)];

% 21DIV
load('C:\Users\Jon\Desktop\mingledorf\2012-09-04_fatty21368_19DIV_MEA_6well\fatty21368_21DIV_drugs_01.mat');
tmp.time = [tmp.time; time(time<=24*3600)+24*3600];
tmp.channel = [tmp.channel; channel(time<=24*3600)];
tmp.unit = [tmp.unit; unit(time<=24*3600)];
tmp.threshold = [tmp.threshold; threshold(time<=24*3600)];

% 22DIV
load('C:\Users\Jon\Desktop\mingledorf\2012-09-04_fatty21368_19DIV_MEA_6well\fatty21368_22DIV_drugs_01.mat');
tmp.time = [tmp.time; time(time<=24*3600)+24*3600*2];
tmp.channel = [tmp.channel; channel(time<=24*3600)];
tmp.unit = [tmp.unit; unit(time<=24*3600)];
tmp.threshold = [tmp.threshold; threshold(time<=24*3600)];

% 23DIV
load('C:\Users\Jon\Desktop\mingledorf\2012-09-04_fatty21368_19DIV_MEA_6well\fatty21368_23DIV_washBCDE_drugsAF_03.mat');
tmp.time = [tmp.time; time(time<=24*3600)+24*3600*3];
tmp.channel = [tmp.channel; channel(time<=24*3600)];
tmp.unit = [tmp.unit; unit(time<=24*3600)];
tmp.threshold = [tmp.threshold; threshold(time<=24*3600)];

% 24DIV
load('C:\Users\Jon\Desktop\mingledorf\2012-09-04_fatty21368_19DIV_MEA_6well\fatty21368_24DIV_washAbcdeF_03.mat');
tmp.time = [tmp.time; time(time<=24*3600)+24*3600*4];
tmp.channel = [tmp.channel; channel(time<=24*3600)];
tmp.unit = [tmp.unit; unit(time<=24*3600)];
tmp.threshold = [tmp.threshold; threshold(time<=24*3600)];

%% save stuff
time = tmp.time;
channel = tmp.channel;
unit = tmp.unit;
threshold = tmp.threshold;
save('C:\Users\Jon\Desktop\mingledorf\2012-09-04_fatty21368_19DIV_MEA_6well\fatty21368_19-24DIV.mat','time','channel','unit','threshold');