function result = vectorAvg(v)
%vectorAvg  return mean of a vector
%
%  @@@ Fill in stuff here
% 

% if the vector is of zero length,
% return an error:

if length(v)<=0
   error('Can''t find avg of zero length vector');
end;

% now, compute the average
% precondition: length(v) >= 0

result =   myVectorSum(v) / length(v);



return;
end