function y = myStats(x)
%Takes a vector x and returns its mean
    n = length(x); 
    y = myMean(x,n); 
end

% The main function can use a supporting function. 
% The main function can be called by other scripts and in the command
% window, but helper functions cannot. 

function m = myMean(v,n)
% Takes a vector v with length n and returns the mean of v. 
    m = sum(v)/n; 
end