Mathematics |
General Solution
The general solution to a system of linear equations AX = b describes all possible solutions. You can find the general solution by:
null
command, by typing null(A)
. This returns a basis for the solution space to AX = 0. Any solution is a linear combination of basis vectors.
You can then write any solution to AX = b as the sum of the particular solution to AX = b, from step 2, plus a linear combination of the basis vectors from step 1.
The rest of this section describes how to use MATLAB to find a particular solution to AX = b, as in step 2.
Computational Considerations | Square Systems |