function y = mean2(x)

% mean2 -- compute the mean of a matrix
%  Usage
%    y = mean2(x)
%  Inputs
%    x      a matrix
%  Outputs
%    y      the mean of the elements in x
%  Description
%    The sum of the elements divided by the number of elements

y = sum(x(:))/prod(size(x));
