Question: (a) Make a MATLAB code for LU decomposition of an arbitrary matrix. Do not use inv( ) function or. The code must display L, U

(a) 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) 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

3.44 Rating (154 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To tackle both parts of this question well start by implementing the MATLAB code for LU decomposition that fulfills the given requirements Then well e... View full answer

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 Mathematics Questions!