Question: Code in Matlab (a) Q1: find X = A -1 B (b) Q2: Show the specific L matrix, U matrix, and the resulting X Note:

 Code in Matlab (a) Q1: find X = A-1 B (b)

Code in Matlab

(a) Q1: find X = A-1 B

(b) Q2: Show the specific L matrix, U matrix, and the resulting X

Note: For Q2, using functions such as lu(), inv, matrix division, in MATLAB and the like, will get few credits.

(c) Q3: show the relative error

Problem 1: Suppose we want to solve 21 2 13 21 32 17 2 41 23 12 11 14 7 2 8 11 7 23 1 31 5 14 8 13 5 3 5 9 COOR 14 8 6 9 14 55 23 5 11 22 8 3 15 5 11 23 7 13 5 3 8 19 11 7 7 13 17 11 19 26 7 8 23 26 9 24 3 5 6 7 9 25 19 7 9 11 17 13 17 1 16 3 11 (1) - Is 16 17 5 12 19 A X B 1. Use "iny functions in MATLAB or the like in the programming languages you are using for this homework to get the inverse of A matrix, and the result X = A B. Round X to 4 decimal places. 2. Program LU decomposition, backward-substitution, and forward substi- tution, to get the result X. Round X to 1 decimal places 3. Considering the X from Q1 as the accurate results, use L-2 norm to eval- uate the relative error Xl where X is the result from Q2. Round X the relative error to I decimal places

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!