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
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 LinuxCategories
Find more on Calculus in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
