Return value is a vector containing largest element in columns of given matrix. r = max(max(matrix)) gives largest element of the matrix.