|
Size: 294
Comment: Initial commit
|
Size: 357
Comment: Note about A
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 13: | Line 13: |
| To solve the problem `Ax = b`, try: | To solve the problem `Ax = b` for a square `A`, try: |
| Line 21: | Line 21: |
| The original `A` can be returned by `L*U`. |
MATLAB lu
The lu function calculates the LU decomposition of a matrix.
Usage
To solve the problem Ax = b for a square A, try:
[L, U] = lu(A); y = L \ b; x = U \ y;
The original A can be returned by L*U.
