for k=1:2
for i=1:173
uFRET(1,i).ints10=timewindow(uFRET(1,i).counts,10);
uFRET(1,i).ints20=timewindow(uFRET(1,i).counts,20);
uFRET(1,i).ints50=timewindow(uFRET(1,i).counts,50);
uFRET(1,i).ints100=timewindow(uFRET(1,i).counts,100);
end
end
for k=1:2
for i=1:173
uFRET(k,i).eff10=efficiency(uFRET(k,i).ints10);
uFRET(k,i).eff20=efficiency(uFRET(k,i).ints20);
uFRET(k,i).eff50=efficiency(uFRET(k,i).ints50);
uFRET(k,i).eff100=efficiency(uFRET(k,i).ints100);
end
end
%Histogrammwerte errechnen
R15E(9,:) = histc(F15ext(:,17),R15E(1,:));
%Plotten

for i=0:7
subplot(8,1,i+1);plot(uFRET(1,173-i).ints10)
ylabel(uFRET(1,169-i).names(1:end-8))
set(gca,'xtick',[],'ytick',[])
end

%Speichern
saveas(gcf, 'MatLab/plots/EHists/E42-50-01.fig','fig'), saveas(gcf, 'MatLab/plots/EHists/E42-50-01.png','png');



for i=1:131
FRETS(i,1).int10=intsums(FRETS(i,1).PhotonCounts,10);
end

for i=1:173
FRET2p5mM(1,i).int20c=cleaneff(FRET2p5mM(1,i).DAChannel);
end

 for i=1:5
range=abs(min(FRET2p5mM(1,i).int20c(:,3))-max(FRET2p5mM(1,i).int20(:,3)));
bins=0:(brange/100):max(FRET2p5mM(1,i).int20);

 for i=1:173
FRET2p5mM(1,i).hists=histc(FRET2p5mM(1,i).int20c(:,3),0:0.01:1);
 end

 for i=1:173
 tic
 FRET2p5mM(1,i).int20(:,3)=effer(FRET2p5mM(1,i).int20(:,1:2));
 toc
 t=toc
 end
 
 diff