Question: Help me with this MATLAB code: (a) Please make a MATLAB code for LU decomposition of an arbitrary matrix. Do not use inv( ) function

Help me with this MATLAB code:

(a) Please make a MATLAB code for LU decomposition of an arbitrary matrix. Do not use inv( ) function or \. The code must display L, U and L*U matrices. The code must accept a matrix as an input. The code must generate the following error message if the input is not a square matrix: The input matrix must be square.

(b) Please solve the problem through the following procedures:

10x(1)+2x(2)-x(3)=27

-3x(1)-6x(2)+2x(3)=-61.5

x(1)+x(2)+5x(3)=-21.5

Use the code made in (a) to obtain L and U matrices from the system matrix you establish.

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!