Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

For the given Matlab code, please write the needed functions associated with the

ID: 3574042 • Letter: F

Question

For the given Matlab code, please write the needed functions associated with the code below, Solve_Linear_System.m, It needs three input functions, row_perm.m, row_times.m, and row_add.m each perform very basic row operations for Gaussian Elimination. Together all these combined should be able to solve a 7 by 7 linear system. (A 7x7 matrix)(With 7 answers).

Example:

|6 0 7 7 6 1 8| X1| =6|

|7 5 5 2 7 8 7| X2| =4|

|9 5 3 4 4 4 3| X3| =8|

|9 8 1 6 0 8 2| X4| =7|

|1 4 5 3 3 3 7| X5| =1|

|1 3 27 4 7 9 | X6| =8|

|6 6 0 3 2 3 3| X7| =9|

Explanation / Answer

A =[6 0 7 7 6 1 8]
[7 5 5 2 7 8 7]
[9 5 3 4 4 4 3]
[9 8 1 6 0 8 2]
[1 4 5 3 3 3 7]
[1 3 27 4 7 9 ]
[6 6 0 3 2 3 3]

B =6
4
8
7
1
8
9

X = linsolve(A,B)

The X values are as follows :