Skip to content

linsolve

linear-algebra · scripts/linear-algebra/linsolve.m

: x = linsolve (A, b)
: x = linsolve (A, b, opts)
: [x, r] = linsolve (…)

Solve the linear system A*x = b.

opts is a scalar structure whose logical fields describe A: LT (lower triangular), UT (upper triangular), UHESS, SYM, POSDEF, RECT and TRANSA (solve A'*x = b). For LT and UT only the named triangle of A is used. The second output is the reciprocal condition estimate for square A and the rank otherwise.