Question: part a b and c 4. You are provided a MATIAB function le 'LUdeoomp.m'. lComplete the function LUdeoomp.m such that it takes as input a

part a b and c

part a b and c 4. You are provided a MATIAB
4. You are provided a MATIAB function le 'LUdeoomp.m'. lComplete the function LUdeoomp.m such that it takes as input a square matrix A and outputs L [a lower triangular matrix with one on the diagonal) and [J {an upper triangular matrix} such that A = LU. There is an inbuill MATLAB command called 'lu' which you may use to check your output but you cannot use this command in your submission. Instead, you should explicitly as]: MATIAB to perform all row operations in the format that is described on pages 27 and 23 of your lecture notes and carefully framed in the provided le. Your code, as text, should be attached to your submitted assignment. It is a requirement that you include this code as it constitutes PL'I.'.rorlr_'ing\" for the rst question below. You can assume in your code that you will not encounter a pivot value of I]. Hint: All of the lines that you need to add to this function are inside the 'for' loops {you only need about 5 additional lines}. lChange the rent of the code at your own risk. Comments are included to guide you. You will use this le to answer the following questions. {a} Consider the system of equations c1 2;rg 2233s4= 1, 3c, 9-TgQI =9. $1+21'2 +4a3 +Ta~d= 11, ~3:I:1-'I.'2+2fl:1:3,+2c,I =33, which hereby will be referred to by its associated matrix notation Ar = b. You will notice that in 'LUdeoomp.m' the upper triangular component, as it changes from A to U is displayed to the screen after each column has been Laeroed' by lGaussian Elimination. Write each unique displayed matrix {two in total] that is output by your completed MATLAB function for the matrix A as input as well as U and L nal outputs {you should have four matrices in total}. Note: If you do not provide a print out of working code attached to the end of this assign- ment, your mark for this part will he halved. {h} To solve {Ajc = it, we will solve {LUJm = h, where L and U are the decomposed matrices of A you found using your hLATLAB code. By dening y = Us, solve Ly = h for y by forward substitution {by hand]. {c} Find the solution to the linear system of equations by solving Us = y by back substitution [by hand}

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