Rank calculator for N*N matrix

Choose the matrix sizeļ¼š X
Rank(a) of the matrix =

According to the elementary row transformation principle, transform the original matrix into a ladder matrix. The total number of rows minus the number of rows that are all zero, that is, the number of non-zero rows, is the rank of the matrix.