Question: A = diag ( ones ( 1 , 4 ) , 1 ) + diag ( ones ( 1 , 4 ) , - 1

A = diag (ones (1,4),1)+ diag (ones (1,4),-1)-
2* eye (5);
U = A;
n = length (U);
for j=1:n
if U(j, j)==0
error(' System cannot be solved by regular Gaussian elimination.');
end
Uj+1:n= Ulj+1:n-Ulj+1:n
, j / Ulj, j)* U(j, :);
end
L= A /U;
disp (U);
disp (L);

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!