Question: Answer this question using MATLAB! Please include the MATLAB code. Consider the system of equations given by 5x1+x2x1+4x2=1=15 where the exact solution is given by
Answer this question using MATLAB! Please include the MATLAB code.

Consider the system of equations given by 5x1+x2x1+4x2=1=15 where the exact solution is given by sol =[1,4]T. (a) Perform 10 iterations using the Jacobi method with a starting guess of x(0)=[1.01,4.01]T. At each iteration number (i) record the error by log10(norm(xs01)). The errors should diminish. (b) Switch the order of the equations and do the same thing. The errors should increase. (c) Make a single plot of the results above. It should have iteration number (i) on the x axis and log10( norm (x(i) sol )) on the y axis. It should produce a graph similar to the one on the right
Step by Step Solution
There are 3 Steps involved in it
To solve this problem lets use MATLAB to perform the Jacobi method iterations and analyze the errors ... View full answer
Get step-by-step solutions from verified subject matter experts
