max
Syntax
Description
M = max(A)
- If - Ais a vector, then- max(A)returns the maximum of- A.
- If - Ais a matrix, then- max(A)is a row vector containing the maximum value of each column.
For an input A that contains symbolic expression, the
          symbolic max function returns an unevaluated expression that is reduced
          by eliminating arguments that do not represent maximum values. The output may have another
          argument that represents the condition for the symbolic variable. For example,
            syms x; max([1 x]) returns the output max([1, x], [], 2,
            'Omitnan', ~in(x, 'real')) in the Command Window since x is
          complex.

![max(A,[],1) column-wise operation](max_dim_1.png)
![max(A,[],2) row-wise operation](max_dim_2.png)