Using the Numpy matrix.transpose ()
method, we can find the transpose of a matrix using matrix.transpose ()
.
Syntax:
matrix.transpose ()
Return: Return transposed matrix
Example # 1:
In this example we can see that using matrix.transpose ()
we can find the transposition of the given matrix.
|
Output:
[[4 12] [1 3]]
Example # 2:
|
Exit:
[[4 12 4] [1 3 5] [9 1 6]]