Question: Implement SOR Method and solve problem 5 Fill in the missing part of the template. 5. (SOR) Implement the SOR (Successive Over-relaxation) Method using MATLAB.
Implement SOR Method and solve problem 5
Fill in the missing part of the template.


5. (SOR) Implement the SOR (Successive Over-relaxation) Method using MATLAB. Use the stopping criterion we discussed in class. Submit your codes through MATLAB Grader. See MATLAB Grader for details. Use your codes for SOR to solve the following linear system, 112212211x=135 - Can you find a such that the SOR method converges? Discuss your findings. %%%%%% Do not modify this part %%%%%% A=[122111221];b=[135];x=[000];eps=1e5;x=sor(A,b,x,eps) \% This is your code for SOR \% Use similar structure of Jacobi method function x=sor(A,b,x, tol ) x=x; x1=ones(size(x)); iter =0; sigma =0.3;% this is the parameter in SOR. D= ? L= ? while ? ? ? % what is the scheme for SOR? ? if iter >500 disp('Exceeded max number of iterations') break end end end end
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
