max(m)

The max(m) function returns a vector listing the largest elements for each column in m.

Example

OML

>> m=[1 -2;-3 4]

1 -2

-3 4

>> max(m)

1 4