Professional Documents
Culture Documents
Mid Exam
Mid Exam
Course Name: MATLAB Course Code: Meng 3042 Date: Nov, 2023
Year/Sem.: III/II Max. Marks:20% Time Allowed: 1.10 hr
I work out neatly steps according to the given questions.
1. Solve the system of equations using the Gauss elimination with partial pivoting.
(4pts)
x 1+ 10 x 2−x 3 =3
2 x 1+ 3 x 2 +20 x 3 =7
10 x 1+ x2 −2 x 3 =4
2 x+ y+ 4 z =12
8 x−3 y +2 z =20
3. Find the best-fit values of a and b so that y = a + bx fits to given data regarding
x as the independent variable given in the table. (6pts)