LU decomposition

Version 1.0.0.0 (1.55 KB) by Timothee
This program obtains the LU decomposition of a matrix using Crout’s Method
1.8K Downloads
Updated 24 Feb 2010

View License

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://nl.mathworks.com/matlabcentral/fileexchange/26775-lu-decomposition), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags
Version Published Release Notes
1.0.0.0