rank(A) Returns the rank of A, that is,
the number of linearly independent columns in A.
geninv(A) Returns L, the generalized
(pseudo) inverse of A, which gives the least-squares
solution to a system of equations. If x = L·b, then
x is the minimum of |A·x −
b|2. If A is square, and non-singular,
then geninv returns A−1.
rref(A) Returns the row-reduced echelon form of A.
Arguments:
A is a real vector or matrix. For geninv,
the number of rows must be greater than or equal to the number of columns.
Notes:
To solve a linear system of equations, you may wish to use lsolve
or a Solve Block.
If A has full rank (all columns linearly independent),
then geninv returns L, the left inverse of
A, that is, L·A = I. In this
case, L = (AT·A)−1·AT.
The geninv function is dependent on TOL,
so, for matrices that are nearly singular, adjusting this value may produce
a better result.