FUNCTION REFERENCE

linsolve

Solve linear systems using matrix properties when supplied.

Solve linear systems using matrix properties when supplied.

Syntax

X = linsolve(A,B); [X,R] = linsolve(A,B,opts)

Example

linsolve([2 0; 1 3], [4; 5])   % [2; 1]

Differences from MATLAB: Real double inputs. LT, UT and TRANSA select triangular and transposed solves for a square A; a rectangular A always gets the pivoted-QR least-squares solution. SYM, POSDEF and RECT use the general solver.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.