LU decomposition

This program obtains the LU decomposition of a matrix using Crout’s Method

You are now following this Submission

This program will obtain the LU decomposition for any square matrix. The LU decomposition method consists of finding the L and U matrices that will satisfy the equation A=L*U, A being a square matrix.

Once L and U found, in order to solve for x, we can rewrite the equation A*x=B as L*x_star=b (Eq.1) where x_star=U*x (Eq.2).

Then we can find x_start by using forward substitution on Equation 1 and finally solve for x using backward substitution on Equation 2.

Cite As

Timothee (2026). LU decomposition (https://www.mathworks.com/matlabcentral/fileexchange/26775-lu-decomposition), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0