Question: Provided the steps and the code using MATLAB Use MATLAB to solve: 1 5 C 1 3 C 2 C 3 = 6 7 0

Provided the steps and the code using MATLAB
Use MATLAB to solve:
15C13C2 C3=6700
-3C1+18C26C3=37200
-4C1 C2+12C3=3100
Define A and B and use the inverse to solve for x, y, z. In particular show:
(i) The answer to inv(A)*B
(ii) The answer to B*inv(A)
(iii) Explain why only (i) worked
(iv) Now calculate the answer using A\B (this uses the Gaussian elimination to solve the linear system)
(v) Show the error of both methods (i and iv) by calculating A*ans-B where ans is the answer to i or iv. Which method produces smaller error? Explain the reason for the difference in error

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 Programming Questions!