max

Navigation:  Language Reference > Functions > Matrix >

max

Previous pageReturn to chapter overviewNext page

Syntax

y = max(A);

Description

Returns the value of the largest matrix element of A.

Examples

A = [1,2;3,ramp(1)];

y = max(A);

Limitations

y must be a scalar.