Question: code in matlab and explanation (a) Generate a 13 times 13 matrix in MATLAB using A = hilb(13). (b) Generate a vector x = [1:

code in matlab and explanation
(a) Generate a 13 times 13 matrix in MATLAB using A = hilb(13). (b) Generate a vector x = [1: 13]. (c) Generate a vector b, where b = Ax. (d) Using only these values of b and A, pretend that you don't know the true value of x. Instead, calculate a value of x by solving the problem x = A^-1 b using an appropriate numerical technique: let's call this value x. (e) Make a plot of x. How large is the residual error of your calculated value, ||b - Ax||/||x||? How similar is x to the true value of x, ||x - x||/||x||? (f) Repeat steps (d) and (e) using an inappropriate numerical technique. How does this impact your value of x? g) Explain why the consistency of the left and right hand sides of the equation Ax = b doesn't necessarily mean that x is correct for this matrix A
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
