Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started