FUNCTION REFERENCE
rank
Numerical rank from singular values.
Numerical rank from singular values.
Syntax
rank(A)Syntax
rank(A, tolerance)Counts singular values strictly greater than tolerance. The default is max(size(A))*eps(s), where s is the largest singular value. Empty input has rank zero. A must be finite and may be complex; logical input converts to double. An explicit tolerance must be a real numeric or logical scalar.
Example
rank([1 2 3;4 5 6;7 8 9]) % 2Differences from MATLAB: Very small tolerances can give a different rank because the computed singular values differ.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.