function s = MaxAll(in) % [s] = MinAll(in) % returns the max of input IN. IN can be anything from a scalar to an N-D % matrix % % DN 2008 s = max(in(:));