Question: IMPORTANT!!!!! USE MATLAB TO SOLVE THE QUESTION. SHOW THE CODE AND OUTPUT FUNCTION LUDecompose (A) L21 =A(2,1)/A(1,1) L31 =A(3,1)/A(1,1) DOFOR i=1 to 3 A(2,i)=A(2,i)L21A(1,i); A(3,i)=A(3,i)L31A(1,i);

IMPORTANT!!!!! USE MATLAB TO SOLVE THE QUESTION. SHOW THE CODE AND OUTPUT

IMPORTANT!!!!! USE MATLAB TO SOLVE THE QUESTION. SHOW THE CODE AND OUTPUT

FUNCTION LUDecompose (A) L21 =A(2,1)/A(1,1) L31 =A(3,1)/A(1,1) DOFOR i=1 to 3 A(2,i)=A(2,i)L21A(1,i); A(3,i)=A(3,i)L31A(1,i); END DO L32 =A(3,2)/A(2,2) DOFORi=1 to 3 A(3,i)=A(3,i)L32A(2,i); END DO U=A L=[100; LL1 1 O 0; L31 L32 1]; DISPLAY L, U LUDeCOmpose =[L,U] END LUDeCompose Practical Work Preliminary Work (to be done before lab session) Determine the inverse of the following matrix using LU-decomposition. A=1031261125 Lab Work 1. Implement the LU-decomposition in MATLAB using the given pseudocode (IUDecompose)

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!