Dbleached1(1,10)=cursor_info(1,7);
Dbleached1(1,9)=cursor_info(1,6);
Dbleached1(1,7)=cursor_info(1,5);
Dbleached1(1,6)=cursor_info(1,4);
Dbleached1(1,5)=cursor_info(1,3);
Dbleached1(1,4)=cursor_info(1,2);
Dbleached1(1,2)=cursor_info(1,1);
Dbleached12(1,10)=cursor_info(1,9);
Dbleached12(1,9)=cursor_info(1,8);
Dbleached12(1,8)=cursor_info(1,7);
Dbleached12(1,7)=cursor_info(1,6);
Dbleached12(1,6)=cursor_info(1,5);
Dbleached12(1,5)=cursor_info(1,4);
Dbleached12(1,4)=cursor_info(1,3);
Dbleached12(1,2)=cursor_info(1,2);
for l=1:10
nuFRET(1,l+10).D_bleached=Dbleached2(1,l);
end;
for l=1:10
nuFRET(1,l+20).D_bleached=Dbleached3(1,l);
end;
for l=1:10
nuFRET(1,l+30).D_bleached=Dbleached4(1,l);
end;
for l=1:10
nuFRET(1,l+40).D_bleached=Dbleached5(1,l);
end;
for l=1:10
nuFRET(1,l+50).D_bleached=Dbleached6(1,l);
end;
for l=1:10
nuFRET(1,l+60).D_bleached=Dbleached7(1,l);
end;
for l=1:10
nuFRET(1,l+70).D_bleached=Dbleached8(1,l);
end;
for l=1:10
nuFRET(1,l+80).D_bleached=Dbleached9(1,l);
end;
for l=1:10
nuFRET(1,l+90).D_bleached=Dbleached10(1,l);
end;
for l=1:10
nuFRET(1,l+100).D_bleached=Dbleached11(1,l);
end;
for l=1:10
nuFRET(1,l+110).D_bleached=Dbleached12(1,l);
end;
for l=1:7
nuFRET(1,l+120).D_bleached=Dbleached13(1,l);
end;

for h=43:127
o(1,h-42)=names(h,2);
end

for h=1:85
%list(h,1)=str2double(o(1,h))

 %   mhFRET=struct
oxyFRET(h)=nuFRET(1,list(h));

end

for k=1:127
nuFRET(1,k).A_bleached=size(nuFRET(2,k).counts,1);
end;


for l=1:12
for k=1:10
figure(l)
subplot(10,1,k);
plot(nuFRET(1,-10+10*l+k).eff20)
set(gca,'XTickLabel',[],'ytick',[],...
'TickLength',[0.004,0.001],'XMinorGrid','on','XAxisLocation','top','XMinorGrid','off','XAxisLocation','top');
end
end

for l=1:85
oxy_rauschen(l,1:2)=oxyFRET(1,l).bg
end;

for k=1:7
    for i=1:100
        
Var1(:,i)=var( efficiency( timewindow( nuFRET(1,l(k) ).counts( 1:nuFRET(1,l(k)).statechanges(2,1),1:2),i)));
Var2(:,i)=var( efficiency( timewindow( nuFRET(1,l(k) ).counts( nuFRET(1,l(k)).statechanges(2,1) : nuFRET(1,l(k)).statechanges(3,1),1:2),i)));

    end
VarM1(:,k)=Var1(1,:);
VarM2(:,k)=Var2(1,:);
end

