Question: Language is MatLab 1. Write a function with the header [m, U, x] = mySweep(A,b) which performs systematic linear transformation on the system Ax=b (the

Language is MatLab

1. Write a function with the header [m, U, x] = mySweep(A,b) which performs systematic linear transformation on the system Ax=b (the forward sweep). Note that this function should return not only the transformed A and b, but also a matrix m containing -m(i, j) used in the

transformation but also with 1s on its diagonal. Recall that m(i, j) = -A(i, j) / A(j, j)

Since m will only populate with elements below the diagonal, you should first initialize m with nxn zeros.

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!