202LUFactorisation

Version 1.0.0 (1.08 KB) by raam
LU Factorisation
1 Download
Updated 15 Nov 2022

View License

%LU
clear all;
clc;
a = input("enter matrix: ")
n = length(a);
l = eye(n);%identity matrix
for i=1:n-1
for j = i+1:n
m=a(j,i)/a(i,i);
l(j,i)=a(j,i)/a(i,i);
for k=1:n
a(j,k)=a(j,k)-m*a(i,k);
end
end
end
l
a

Cite As

raam (2024). 202LUFactorisation (https://www.mathworks.com/matlabcentral/fileexchange/120678-202lufactorisation), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2022b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0