can only square matrix have a transpose code example
Example: what is transpose of a matrix
The transpose of a matrix is simply a flipped version of
the original matrix. We can transpose a matrix by switching
its rows with its columns. We denote the transpose of matrix
A by AT. For example, if A=[123456] then the transpose of A is
AT=[142536].