function VarMean=VarMean(inFRET)
%% GammaFRET.np9StepsTW
for k=1:length(inFRET)
    for i=1:9
    ende=find(inFRET(1,k).np9StepsTW10(:,i),1,'last');
VarMean.NPmeanNP2_10tw10(i,k)=mean(inFRET(1,k).np9StepsTW10(1:ende,i));
VarMean.NPvarNP2_10tw10(i,k)=var(inFRET(1,k).np9StepsTW10(1:ende,i));

    ende=find(inFRET(1,k).np9StepsTW12(:,i) ,1,'last');
VarMean.NPmeanNP2_10tw12(i,k)=mean(inFRET(1,k).np9StepsTW12(1:ende,i));
VarMean.NPvarNP2_10tw12(i,k)=var(inFRET(1,k).np9StepsTW12(1:ende,i));

    ende=find(inFRET(1,k).np9StepsTW15(:,i) ,1,'last');
VarMean.NPmeanNP2_10tw15(i,k)=mean(inFRET(1,k).np9StepsTW15(1:ende,i));
VarMean.NPvarNP2_10tw15(i,k)=var(inFRET(1,k).np9StepsTW15(1:ende,i));
   
    ende=find(inFRET(1,k).np9StepsTW20(:,i) ,1,'last');
VarMean.NPmeanNP2_10tw20(i,k)=mean(inFRET(1,k).np9StepsTW20(1:ende,i));
VarMean.NPvarNP2_10tw20(i,k)=var(inFRET(1,k).np9StepsTW20(1:ende,i));
    end
%% GammaFRET.np19StepsTW
    for i=1:19
    ende=find(inFRET(1,k).np19StepsTW20(:,i) ,1,'last');
VarMean.NPmeanNP2_20tw20(i,k)=mean(inFRET(1,k).np19StepsTW20(1:ende,i));
VarMean.NPvarNP2_20tw20(i,k)=var(inFRET(1,k).np19StepsTW20(1:ende,i));

    ende=find(inFRET(1,k).np19StepsTW30(:,i) ,1,'last');
VarMean.NPmeanNP2_20tw30(i,k)=mean(inFRET(1,k).np19StepsTW30(1:ende,i));
VarMean.NPvarNP2_20tw30(i,k)=var(inFRET(1,k).np19StepsTW30(1:ende,i));

    ende=find(inFRET(1,k).np19StepsTW50(:,i) ,1,'last');
VarMean.NPmeanNP2_20tw50(i,k)=mean(inFRET(1,k).np19StepsTW50(1:ende,i));
VarMean.NPvarNP2_20tw50(i,k)=var(inFRET(1,k).np19StepsTW50(1:ende,i));

    ende=find(inFRET(1,k).np19StepsTW100(:,i) ,1,'last');
VarMean.NPmeanNP2_20tw100(i,k)=mean(inFRET(1,k).np19StepsTW100(1:ende,i));
VarMean.NPvarNP2_20tw100(i,k)=var(inFRET(1,k).np19StepsTW100(1:ende,i));
    end

%% GammaFRET.np10StepsNP
    for i=1:11
    ende=find(inFRET(1,k).np10StepsNP5(:,i) ,1,'last');
VarMean.NPmeanTW5_15np5(i,k)=mean(inFRET(1,k).np10StepsNP5(1:ende,i));
VarMean.NPvarTW5_15np5(i,k)=var(inFRET(1,k).np10StepsNP5(1:ende,i));

    ende=find(inFRET(1,k).np10StepsNP6(:,i) ,1,'last');
VarMean.NPmeanTW5_15np6(i,k)=mean(inFRET(1,k).np10StepsNP6(1:ende,i));
VarMean.NPvarTW5_15np6(i,k)=var(inFRET(1,k).np10StepsNP6(1:ende,i));

    ende=find(inFRET(1,k).np10StepsNP8(:,i) ,1,'last');
VarMean.NPmeanTW5_15np8(i,k)=mean(inFRET(1,k).np10StepsNP8(1:ende,i));
VarMean.NPvarTW5_15np8(i,k)=var(inFRET(1,k).np10StepsNP8(1:ende,i));

    ende=find(inFRET(1,k).np10StepsNP10(:,i) ,1,'last');
VarMean.NPmeanTW5_15np10(i,k)=mean(inFRET(1,k).np10StepsNP10(1:ende,i));
VarMean.NPvarTW5_15np10(i,k)=var(inFRET(1,k).np10StepsNP10(1:ende,i));
    end

end
