rank(mat)

Rank of a matrix.

matThe input matrix.
return valueThe rank of the matrix.

The argument can be a matrix, a scalar, or a vector.

rank([1,2;2,4])