`A = [2 4 5 6; 5 8 9 6; 8 9 5 6]max(A,[],2)`

The above code provide maximum element from the each row. I came across to max(A,[ ],2) online only. Can you please tell me the logic behind it, what actually matlab is understanding from max(A,[ ], 2)?

Skip to content# MATLAB: Max function to receive maximum element of the row

###### Related Question

MATLABmatricesmatrix

`A = [2 4 5 6; 5 8 9 6; 8 9 5 6]max(A,[],2)`

The above code provide maximum element from the each row. I came across to max(A,[ ],2) online only. Can you please tell me the logic behind it, what actually matlab is understanding from max(A,[ ], 2)?

- Return index of biggest element in a row-matrix.
- Help with max function
- How to select the top 5 five values in a matrix
- Find maximum among the elements in the matrix lower than 80% of max element of entire matrix
- How to find column index of max value for each row of a matrix 378×5 size
- How to find the maximum value in a matrix
- Vector array from matrix

## Best Answer