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, try:

[L, U] = lu(A);
y = L \ b;
x = U \ y;


CategoryRicottone