close all;
addpath(genpath('..'))
myTraceNumbers={'_5_25','_200_25','_5_1000','_200_1000'};
for myIndex=1:4
TraceNumbers=myTraceNumbers{myIndex};
run CaSignal_ExpKdEndoTracesLoadData
TotalEndogenousBuffer=45;
DyeTotal = 100;
Nshells = 6;
R=1;
dR=R/Nshells;
Path='..\Output\';
NameExperiment='KdEndoTraces';
imageformat='fig';
run CaSignal_Exp3Sub1
run CaSignal_Exp3Sub2
run CaSignal_Exp3Sub4
axes_handles=zeros(3,2);
figure(3112)
axes_handles(1,1)=gca;
figure(3000)
axeshandle1=subplot(2,3,1);
swapfigures(axeshandle1,axes_handles(1,1))
axes(axes_handles(1,1))
axis 'manual'
axis([5,25,0,1])
figure(3111)
axes_handles(1,2)=gca;
figure(3000)
axeshandle1=subplot(2,3,4);
swapfigures(axeshandle1,axes_handles(1,2))
axes(axes_handles(1,2))
axis 'manual'
axis([5,25,0,1])
figure(3212)
axes_handles(2,1)=gca;
figure(3000)
axeshandle1=subplot(2,3,2);
swapfigures(axeshandle1,axes_handles(2,1))
axes(axes_handles(2,1))
axis 'manual'
axis([5,25,30,60])
figure(3211)
axes_handles(2,2)=gca;
figure(3000)
axeshandle1=subplot(2,3,5);
swapfigures(axeshandle1,axes_handles(2,2))
axes(axes_handles(2,2))
axis 'manual'
axis([5,25,30,60])
figure(343)
axes_handles(3,1)=subplot(2,2,3);
axes_handles(3,2)=subplot(2,2,1);
figure(3000)
axeshandle1=subplot(2,3,3);
swapfigures(axeshandle1,axes_handles(3,1))
axeshandle1=subplot(2,3,6);
swapfigures(axeshandle1,axes_handles(3,2))
axes(axes_handles(3,2))
axis auto
axes(axes_handles(3,1))
axis auto
set(axes_handles,'FontSize',9)
set(gcf,'PaperType','A4')
figfilename=['..\Output\FreeAndDye',NameExperiment,TraceNumbers];
saveas(gcf, figfilename,'pdf')
saveas(gcf, figfilename,'png')
saveas(gcf, figfilename,'fig')
end