Question

= Given the system of equations -3 x_{2}+7 x_{3}=2 x_{1}+2 x_{2}-x_{3}=3 5 x_{1}-2 x_{2}=2 a) Write the equations into the format of Ax =b; b) Compute the determinant of A

using the function you wrote in problem 1.c; c) Write a MATLAB function using Cramer's rule to solve x1, X2, and x3; d) Write a MATLAB function using Gauss elimination to solve x1, X2, and x3; e) Write a general MATLAB function to check if the solution you got in part c and d is actually the solution of the given equations.

Fig: 1

Fig: 2

Fig: 3

Fig: 4

Fig: 5

Fig: 6

Fig: 7

Fig: 8

Fig: 9