Question: MATLAB script needed: Save your script to an m-file, i NEED HELP WITH PART C AND D PLEASE....The solutions answer has a numerical answer, but
MATLAB script needed: Save your script to an m-file, i NEED HELP WITH PART C AND D PLEASE....The solutions answer has a numerical answer, but I need a MATLAB script.
9.4 Given the system of equations
2x2 + 5x3 = 1 2x1 + x2 + x3 = 1
3x1 + x2 = 2
(a) Compute the determinant. - DONE. NOT NEEDED
SCRIPT:
D = [0 2 5;2 1 1;3 1 0]; A = [1;1;2]; X = D\A; disp(X);
(b) Use Cramers rule to solve for the xs. - DONE. NOT NEEDED
SCRIPT:
x = det(dx)/d0; y = det(dy)/d0; z = det(dz)/d0;
disp(x); disp(y); disp(z);
D = [0 2 5;2 1 1;3 1 0];
dx = [1 2 5;1 1 1;2 1 0]; dy = [0 1 5;2 1 1;3 2 0]; dz = [0 2 1;2 1 1;3 1 2];
I NEED HELP WITH THIS PART
(c) Use Gauss elimination with partial pivoting to solve for the xs. As part of the computation, calculate the determinant in order to verify the value of the determinant calculated in part (a)
Determinant Answer:
-2.0000 8.0000 -3.0000 (d) Substitute your results back into the original equations to check your solution.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
