Question: Help creating in MATLAB the table T with column 1 being the alpha values and column 2 being the associated error values. I want T

 Help creating in MATLAB the table T with column 1 being

Help creating in MATLAB the table T with column 1 being the alpha values and column 2 being the associated error values. I want T to look like the following but I can't get the for loop to save T as a 5X2 matrix (5 alpha values); it only produces the last iteration. It should look like the following: the alpha values and column 2 being the associated error values. I

function hw4_q1 Alphas [0, 1.0, 10.0, 100.0, 1000.01; n200: tot_it - 100; for alphaAlphas %Generate Linear System [A,bgenerate_SPD_mat_and_rhs_vec(n, alpha); sCompute Solution x jacobi -my_jacobi(A, b, tot it); "True" Solution %Errors err jacobi-norm(x_t - x_jacobi); I-[alpha, err_jacobil; end end 1.0e+03 0 0.0101 0.0010 0.0090 0.0100 0.0048 0.1000 0.0036 1.0000 0.0000

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!