cd('C:\Users\mingfaifong\Documents\2013-03-24_TTX-TTXCTZ-CNQX-CNQXstim1x_patch-analysis\ctrl2\');
load('juju1_alldata.mat'); dat(:,2) = repmat({'juju'},[length(dat),1]);
ctrl2 = dat;
load('trouble1_alldata.mat'); dat(:,2) = repmat({'trouble'},[length(dat),1]);
ctrl2 = [ctrl2; dat];
load('usain2_alldata.mat'); dat(:,2) = repmat({'usain'},[length(dat),1]);
ctrl2 = [ctrl2; dat];
load('wingnut1_alldata.mat'); dat(:,2) = repmat({'wingnut'},[length(dat),1]);
ctrl2 = [ctrl2; dat];
load('xinhai1_alldata.mat'); dat(:,2) = repmat({'xinhai'},[length(dat),1]);
ctrl2 = [ctrl2; dat];

cd('C:\Users\mingfaifong\Documents\2013-03-24_TTX-TTXCTZ-CNQX-CNQXstim1x_patch-analysis\CNQX\');
load('jujuI5372_alldata.mat'); dat(:,2) = repmat({'juju'},[length(dat),1]);
CNQX = dat;
load('trouble22467_alldata.mat'); dat(:,2) = repmat({'trouble'},[length(dat),1]);
CNQX = [CNQX; dat];
load('usain22493_alldata.mat'); dat(:,2) = repmat({'usain'},[length(dat),1]);
CNQX = [CNQX; dat];
load('wingnut22468_alldata.mat'); dat(:,2) = repmat({'wingnut'},[length(dat),1]);
CNQX = [CNQX; dat];
load('xinhai22493_alldata.mat'); dat(:,2) = repmat({'xinhai'},[length(dat),1]);
CNQX = [CNQX; dat];

cd('C:\Users\mingfaifong\Documents\2013-03-24_TTX-TTXCTZ-CNQX-CNQXstim1x_patch-analysis\CNQX-stim1x\');
load('jujuI5388_alldata.mat'); dat(:,2) = repmat({'juju'},[length(dat),1]);
CNQXstim1x = dat;
load('trouble22468_alldata.mat'); dat(:,2) = repmat({'trouble'},[length(dat),1]);
CNQXstim1x = [CNQXstim1x; dat];
load('usain22471_alldata.mat'); dat(:,2) = repmat({'usain'},[length(dat),1]);
CNQXstim1x = [CNQXstim1x; dat];
load('wingnut21332_alldata.mat'); dat(:,2) = repmat({'wingnut'},[length(dat),1]);
CNQXstim1x = [CNQXstim1x; dat];
load('xinhai22471_alldata.mat'); dat(:,2) = repmat({'xinhai'},[length(dat),1]);
CNQXstim1x = [CNQXstim1x; dat];

cd('C:\Users\mingfaifong\Documents\2013-03-24_TTX-TTXCTZ-CNQX-CNQXstim1x_patch-analysis\ctrl1\');
load('xeko2_alldata.mat'); dat(:,2) = repmat({'xeko'},[length(dat),1]);
ctrl1 = dat;
load('zeno7_alldata'); dat(:,2) = repmat({'zeno'},[length(dat),1]);
ctrl1 = [ctrl1; dat];
load('anchovy1_alldata.mat'); dat(:,2) = repmat({'anchovyA'},[length(dat),1]);
ctrl1 = [ctrl1; dat];
load('anchovy5_alldata.mat'); dat(:,2) = repmat({'anchovyB'},[length(dat),1]);
ctrl1 = [ctrl1; dat];
load('stimpy1_alldata.mat'); dat(:,2) = repmat({'stimpyA'},[length(dat),1]);
ctrl1 = [ctrl1; dat];
load('stimpy2_alldata.mat'); dat(:,2) = repmat({'stimpyB'},[length(dat),1]);
ctrl1 = [ctrl1; dat];

cd('C:\Users\mingfaifong\Documents\2013-03-24_TTX-TTXCTZ-CNQX-CNQXstim1x_patch-analysis\TTX\');
load('xeko3_alldata.mat'); dat(:,2) = repmat({'xeko'},[length(dat),1]);
TTX = dat;
load('zeno10_alldata.mat'); dat(:,2) = repmat({'zeno'},[length(dat),1]);
TTX = [TTX; dat];
load('anchovy3_alldata.mat'); dat(:,2) = repmat({'anchovyA'},[length(dat),1]);
TTX = [TTX; dat];
load('anchovy4_alldata.mat'); dat(:,2) = repmat({'anchovyB'},[length(dat),1]);
TTX = [TTX; dat];
load('stimpy6_alldata.mat'); dat(:,2) = repmat({'stimpyA'},[length(dat),1]);
TTX = [TTX; dat];
load('stimpy3_alldata.mat'); dat(:,2) = repmat({'stimpyB'},[length(dat),1]);
TTX = [TTX; dat];

cd('C:\Users\mingfaifong\Documents\2013-03-24_TTX-TTXCTZ-CNQX-CNQXstim1x_patch-analysis\TTX-CTZ\');
load('xeko4_alldata.mat'); dat(:,2) = repmat({'xeko'},[length(dat),1]);
TTXCTZ = dat;
load('zeno9_alldata.mat'); dat(:,2) = repmat({'zeno'},[length(dat),1]);
TTXCTZ = [TTXCTZ; dat];
load('anchovy2_alldata.mat'); dat(:,2) = repmat({'anchovyA'},[length(dat),1]);
TTXCTZ = [TTXCTZ; dat];
load('anchovy6_alldata.mat'); dat(:,2) = repmat({'anchovyB'},[length(dat),1]);
TTXCTZ = [TTXCTZ; dat];
load('stimpy5_alldata.mat'); dat(:,2) = repmat({'stimpyA'},[length(dat),1]);
TTXCTZ = [TTXCTZ; dat];
load('stimpy4_alldata.mat'); dat(:,2) = repmat({'stimpyB'},[length(dat),1]);
TTXCTZ = [TTXCTZ; dat];


cd('C:\Users\mingfaifong\Documents\2013-03-24_TTX-TTXCTZ-CNQX-CNQXstim1x_patch-analysis\');
save ctrl1-TTX-TTXCTZ_ctrl2-CNQX-CNQXstim1x_cellsByTreatment ctrl2 CNQX CNQXstim1x ctrl1 TTX TTXCTZ