function m = mymean(x) % m = mymean(x) % % Function to compute the mean of a vector n = length(x); m = sum(x)/n;