An inconsistent system of equations is one that does not have any solutions. In other words, the equations in the system contradict each other and cannot be satisfied simultaneously. When solving a system of linear equations in MATLAB, an inconsistent system is detected when the backslash operator is used to solve the system and the result is NaN or an empty matrix []. Here's an example of solving an inconsistent system of equations in MATLAB:
main.m322 chars15 lines
The output in this case will be The system is inconsistent. Since all the rows of the coefficient matrix A are linearly dependent, the system is inconsistent and there is no solution.
gistlibby LogSnag