this programs allows you to obtain the L and U matrix from the LU factorization of a square matrix.
Orlando Ramirez Barron (2021). LU factorization algorithm (https://www.mathworks.com/matlabcentral/fileexchange/59077-lu-factorization-algorithm), MATLAB Central File Exchange. Retrieved .
Do not "clear all", which destroys all work done before. E.g. forcing Matlab to read all files from the disk again is a waste of time.
Using "sum" as name of a variable shadows an important builtin function. This causes unexpected troubles frequently.
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!