Differences between revisions 1 and 3 (spanning 2 versions)
Revision 1 as of 2026-01-15 21:10:22
Size: 294
Comment: Initial commit
Revision 3 as of 2026-02-07 04:39:45
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.

Contents

  1. MATLAB lu
    1. Usage


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.


CategoryRicottone

MATLAB/Lu (last edited 2026-02-07 04:39:56 by DominicRicottone)