See other catalogues for
The MathWorks
You may also be interested in
Text version of the page
| | | | | | | | | | | | | | |
| | | |
| | | Systems of Linear Equations | | |
| | | |
| | | -1.0000 4.0000 2.0000 you do not get back the original vector b. You can determine whether AX = b has an exact solution by finding the row reduced echelon form of the augmented matrix [A b]. Todosoforthis example, enter rref([A b]) ans = 1.0000 0 2.2857 0 0 1.0000 1.5714 0 0 0 0 1.0000 Since the bottom row contains all zeros except for the last entry, the equation does not have a solution. In this case, pinv(A) returns a least-squares solution. | | |
| | | |
| | | Overdetermined Systems Overdetermined systems of simultaneous linear equations are often encountered in various kinds of curve fitting to experimental data. Here is a hypothetical example. A quantity y is measured at several different values of time, t, to produce the following observations: | | |
| | | |
| | | | | | | | | | 0.0 | 0.82 | | | | 0.3 | 0.72 | | | | 0.8 | 0.63 | | | | 1.1 | 0.60 | | | | 1.6 | 0.55 | | | | 2.3 | 0.50 | | | | | | | | | |
| | | |
| | | Enter the data into MATLAB with the statements | | |
| | | |
| | | 1-19 | | |
| | | |
| | | | | | | | | | | | | | |