function x = maxOfMatrix(matrix)
%MAXOFMATRIX Maximum element of entire matrix.

%   Author: Damien Teney

x = max(matrix(:));
