linsolve
Solve linear system of
equations
Syntax
X = linsolve(A,B)
X = linsolve(A,B,opts)
Description
X = linsolve(A,B) solves the
linear system A*X = B using LU factorization with partial
pivoting when A is square and QR factorization with column pivoting
otherwise. The number of
rows of A must equal the number of rows of B. If
A is m-by-n and B is m-by-k, then X is
n-by-k. linsolve returns a warning if A is square
and ill conditioned or if it is not square and rank deficient.
[X, R] = linsolve(A,B) suppresses these warnings and
returns R, which is the reciprocal of the condition number
of A if A is square, or the rank of A if
A is not square.
X = linsolve(A,B,opts) solves the
linear system A*X = B or A'*X = B, using the
solver t