Question: Write a script GaussElimination.m in which ( 1 ) the user is prompted to enter a system of linear equations in augmented matrix form (
Write a script GaussElimination.m in which
the user is prompted to enter a system of linear equations in augmented
matrix form times where is arbitrary
the script obtains the solution of the linear system via GuassJordan
elimination using functions that implement elementary row operations
the script finally outputs the solution
The script should be broken into main parts:
Part : Prompts the user for the augmented system and calculates the number of
rows and columns. The number of columns should be greater than
the number of rows, otherwise the script should give an error message.
Part : If the system entered by the user is valid, the second part reduces
the system to upper triangular form following the algorithm discussed
in the tutorial making use of functions linearcomb and swap
Part : Next the system is further reduced to lower triangular. The algorithm
for this part should be the mirror image of the algorithm in Part
Part : Now that the system is purely diagonal, divide each row of the system
by its diagonal entry to obtain the solution. Output the solution.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
