## MathGenie

# linsolve

Solve linear system of equations

### Syntax and Description

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. |