Finding the Rank of a matrix manually isn"t a time taking process. So have you tried to do it in python.
So this is the recipe on how we can find the Rank of a Matrix.
We have imported numpy which is needed.
import numpy as np
We have created a matrix by using np.array with different values in it.
matrixA = np.array([[1, 2, 3, 23],
[4, 5, 6, 25],
[7, 8, 9, 28],
[10, 11, 12, 41]])
We have calculated rank of the matrix by using numpy function np.linalg.matrix_rank and passing the matrix through it.
print("The Rank of a Matrix: ", np.linalg.matrix_rank(matrixA))
So the output comes as
The Rank of a Matrix: 3