Check out example codes for "transpose of a matrix in matlab". It will help you in understanding the concepts better.

Code Example 1

B = A.'
B = A'
B = transpose(A)

Learn ReactJs, React Native from akashmittal.com