function [y] = summingvector(v,n)

   y = v(1);
   for step = 2:n
      y = y+v(step);
   end

end

