Spectral Radius effect on iterative methods
Objective: Please find the main code below: clear all close all clc %matrix A_orig = [5 1 2;-3 9 4;1 2 -7]; A = A_orig; B = [10;-14;33]; %X = [x1;x2;x3]; X_jac = zeros(6,3); X_gs = zeros(6,3); X_sor = zeros(6,3); %identity matrix I = eye(length(A)); %jacobi %diagonal magnification factor magn_jac = [0.45 1 2 3 4 5]; for i = 1:length(magn_jac)…