function [b2,i]=findplus(b)
     n=length(b);
     i=0;
     while b(i+1)>0
         i=i+1;
     end
     b(i+1:n)=0;b2=b(1:n-1);
     
