close all;
figure;
plotAmpCumHist(amplitude(strmatch('nacho364',culture)),'r');
hold on;
plotAmpCumHist(amplitude(strmatch('nacho361',culture)),'k');

%%

close all;
figure;
plotAmpMean(amplitude(strmatch('nacho364',culture)),0);
hold on;
plotAmpMean(amplitude(strmatch('nacho361',culture)),1);
xlim([-.5 1.5]);
set(gca,'XTick',[0 1],'XTickLabel',{['CNQX-treated'],['Control']});

%%

[x1 x2] = getMiniAmpByCell('nacho364',culture,fid,amplitude);
[y1 y2] = getMiniAmpSample(x1,x2,25);
z = [];
for i = 1:length(y2)
    z = [z; cell2mat(y1(i,1))];
end
close all; figure;
plotAmpCumHist(z,'r');

[x1 x2] = getMiniAmpByCell('nacho361',culture,fid,amplitude);
[y1 y2] = getMiniAmpSample(x1,x2,25);
z = [];
for i = 1:length(y2)
    z = [z; cell2mat(y1(i,1))];
end
hold on;
plotAmpCumHist(z,'k');
