function NPAnalysis=Npanalyse(Np, tw)

for i=1:12
    k=1;
    anfang=1;
   
    while SChange(i,k)>0
       ende=SChange(i,k);  
        aFRET=NprobeM(Nprobe.probe(nuFRET(1,visualStates(i)).counts(anfang:ende,2),nuFRET(1,visualStates(i)).counts(anfang:ende,1),Np,tw));
    
        
    
        NPAnalysis(i,1,k)=aFRET.mean;
        NPAnalysis(i,2,k)=aFRET.var;
        NPAnalysis(i,3,k)=aFRET.std;
        NPAnalysis(i,4,k)=aFRET.varest;
          
    k=k+1;
    anfang=ende;
    end
end


