Now use the Matlab backslash operator for the linear solve u

Now use the Matlab backslash operator for the linear solve (use format long to display 16 digits.)

Solution

Matlab code:

A=hilb(12);
B=A;
B(12,1)=B(12,1)+.00001;
b=rand(12,1)

x=A\\b;
y=B\\b;
norm(x-y)
% to identify the ill condition wrt solving the linear system
ans =
1.248179182526498e+012
ans/norm(x)
ans =
1.326285038669488

Now use the Matlab backslash operator for the linear solve (use format long to display 16 digits.)SolutionMatlab code: A=hilb(12); B=A; B(12,1)=B(12,1)+.00001;

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site