Owning Class: linalgebra
Requires: MathScript RT Module
n = rank(a)
n = rank(a, tol)
Returns the rank of a matrix. LabVIEW determines the numerical rank according to the number of singular values larger than the tolerance.
| Name | Description |
|---|---|
| a | Specifies a matrix. |
| tol | Specifies the tolerance of a. tol is a scalar. If you do not specify tol, LabVIEW computes the tolerance using the following equation: tol = max(size(a))*norm(a)*eps. |
| Name | Description |
|---|---|
| n | Returns the rank of a. n is an integer. |
B = [1, 2, 3; 4, 5, 6];
A = B'*B
rank(A)