function tsscaled = mintenzer(tsIN)

total_rows = uint32(size(tsIN,1))
t1 = input('Zeitlänge tau ');

%Erstellen der Multiplikationsmatrix
length = total_rows;
n = t1;

   for i=0:((length/n)-1)

       sumVec = [zeros(1,(i*n)) ones(1,n) zeros(1,length-n-(i*n))];
       sumMatrix(i+1,:) = sumVec;
       
    end
%neue Intensitäten durch multiplizieren   
tsscaled(:,1) = sumMatrix*tsIN(:,1)
tsscaled(:,2) = sumMatrix*tsIN(:,2)



length = 443000;
n = 100;

   for i=0:((length/n)-1)

       sumVec = [zeros(1,(i*n)) ones(1,n) zeros(1,length-n-(i*n))];
       sumMatrix(i+1,:) = sumVec;
       
    end