Note: This page has been translated by MathWorks. Click here to see

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Rank of matrix

`k = rank(A)`

`k = rank(A,tol)`

`rank`

uses a method based on the singular value decomposition, or
SVD. The SVD algorithm is more time consuming than some alternatives, but it is also the
most reliable.

The rank of a matrix `A`

is computed as the number of singular values
that are larger than a tolerance. By default, the tolerance is
`max(size(A))*eps(norm(A))`

. However, you can specify a different
tolerance with the command `rank(A,tol)`

.