Matlab: Checking exsistence of solutions for non-square linear system.

781 Views Asked by At

I am interested in seeing how to check if there is a consistent solution for a linear system which does not have a square matrix.

I'm not sure what the best way to do this is, linsolve does not work(at least how I am using).

1

There are 1 best solutions below

4
On

One possible way is to compute the RREF of the augmented matrix and see if you obtain a row of all $0$'s but with last entry being $1$, if that is the case then it is not consistent because that would mean $0=1$.

Otherwise it is consistent.