Check out example codes for "finding row wise maximum values in matlab". It will help you in understanding the concepts better.

Code Example 1

col_max = max(A)

Code Example 2

row_max = max(A')

Learn ReactJs, React Native from akashmittal.com