this programs allows you to obtain the L and U matrix from the LU factorization of a square matrix.
Orlando Ramirez Barron (2020). 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.
new sentences, and a more efficient script