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

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)?