The rank of a matrix. |
||
Syntax |
r = Rank(m, tol) |
|
Argument |
Name |
Description |
m |
A matrix. |
|
Tol (optional) |
A real number used as the threshold for rounding off near zero singular values. The default is the largest dimension mulitiplied by Eps(s), where s is the largest singular value. |
|
Output |
Name |
Description |
r |
The rank. |
|
Example |
Find the rank of matrix: [1,2,3;4,5,6;2,4,6]. |
|
Syntax |
||
r = Rank([1,2,3;4,5,6;2,4,6]) |
||
Result |
||
r = 2 |
||
Comments |
The rank is the number of linearly independent rows or columns in a matrix. |
|
See Also: |