Question: MATLAB Jacobi alrgorithm function. I have found a few solutions but none of them are in the format that I need. That would be great.

 MATLAB Jacobi alrgorithm function. I have found a few solutions but

MATLAB Jacobi alrgorithm function. I have found a few solutions but none of them are in the format that I need. That would be great.

Write a Matlab function, function x my -jacobi CA, b, tot-it) which takes as input the matrix A, the vector b, number of itera- tions tot it and outputs the Jacobi solution after tot it iterations. A template for the function is given in my.jacobi.m. Make sure you code up the "Smart Jacobi Algorithm". Now, we will investigate the error in the Jacobi solution by varying the size of the linear systems, and keeping the number of Jacobi it- erations fixed. We compare the error in the Jacobi solution with the "true solution" obtained from the Matlab "backslash" operator. A script performing this task is in script-q2.m. Make a table showing how the error in the Jacobi solution varies with increasing size of the linear system. Does the error increase or decrease as the system size increases

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!