function maxval = max2(A)

% MAX2    Maximum value of a 2D matrix.
%    MAX(A) Returns the maximum element of the matrix A.
%
%    See also MIN2. 

% Author: Emilio Antunez
% Date  : March 1, 2003.

maxval = max(max(A));