Question: . Perform the Forward sweep on this augmented matrix. This will be accomplished my myElimBelow. 3. Perform a modified forward sweep again, this time eliminating

. Perform the Forward sweep on this augmented matrix. This will be accomplished my myElimBelow. 3. Perform a modified forward sweep again, this time eliminating everything above the diagonal. This will be accomplished by myElimAbove. 4. Divide each row of the augmented matrix by the corresponding diagonal element A(i,i): 5. The augmented portion (columns n+1 through 2*n) is the inverse of A. Hints myElimBelow 1. Do not use built in Matlab functions. Use nested for-loops. 2. Start with your myForward function. If yours didn't work, get mine from the shared folder (but make sure you understand how it works) 3. Modify it so it doesn't take in b as an argument. 4. Augment the matrix A with an identity matrix of the same size. 5. It's not necessary to worry about sorting rows on each step. 6. Modify it so it only returns an augmented matrix. myElimAbove 1. This function is almost identical to myElimBelow, but the looping arrays for the step and transformation loops go backwards instead of forwards. (step starts at the last row and transform rows above the step, not below it.) 2. Start with the myForward function (or the myElimBelow function) 3. Modify the outer loop so that it starts at the last row and works backward to the second row. 4. Modify the inner loop so that it starts at the row before the outer loop and works backward to the first row. 5. Modify the innermost loop (which iterates across columns) to go from 1 to 2*n (since you are working on an augmented matrix of size n by 2n).

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!