Question: can you add matlab code in your answer 2. (Solving linear system, 12pt)(using only matlab) Consider the linear system Ax=b with and b=[0;2;10;13;8;8]. [2pt] Verify

can you add matlab code in your answer
 can you add matlab code in your answer 2. (Solving linear

2. (Solving linear system, 12pt)(using only matlab) Consider the linear system Ax=b with and b=[0;2;10;13;8;8]. [2pt] Verify that this linear system has a unique solution. Hint: use rref, rank, det, or any other Matlab method you know (and understand). Briefly explain your answer. You'll now solve Ax=b in three different ways. Store the three different solutions in different variables named x1,x2,x3. We will compare them in parts c and d. b1) [2pt] Using rref, determine the solution x of the system Ax=b, and store it in variable x1. Hint: xl is the final column of the reduced row echelon form of M=(Ab). Remember horzcat. b2) [1pt] Using Matlab's linsolve method, find a solution to the system Ax=b. Store the solution in x2. b3) [2pt] Using Matlab's inverse method ((1) or inv), solve the system as x=A(1)b, store the result in x3. c) [2pt] Compare the three solutions x1,x2,x3 pairwise using =. Do any two of them agree according to = ? Does that contradict your answer in a) or not? Why, why not? d) [3pt] Try ranking the three solutions by quality. To do so, compute Ax-b for all x you found, and see which x produces the smallest differences

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!