function avg = average(x)
%function avg = average(x)
% Computes the average (arithmetic mean) of x
% x     (input)   matrix for which an average is sought
% avg  (output) the average of x
% MATLAB equivalent is mean
avg = sum(x)/numel(x);    % the average
end
