function result = mySum1(x)
% mySum1   return the sum of a vector
%
% Examples:
%    >> mySum1([3 2 7])
%    ans = 12
%    >>
%    >> mySum1([])
%    ans = 0
%    >>
% P. Conrad for CISC106 10/29/07
% with the help of Section 080, 10:10am
 
  result = 0;
  
  
  for i=1:length(x)
  
    result = x(i) + result;
    
  end % for
  
  return;
  
end
  