Question: Please answer the expressed question VIA MATLAb 2018b only 22 Write a user-defined MATLAB function that solves a system of n lincar equations, [al[] b,
Please answer the expressed question VIA MATLAb 2018b only
22 Write a user-defined MATLAB function that solves a system of n lincar equations, [al[] b, with the Gauss Jordan method. The program should include pivoting in which the pivot row is switched with the row that has a pivot element with the largest absolute numerical value. For the function name and arguments use x GaussJordan (a, b),where a is the matrix of coefficients, b is the right-hand-side column of constants, and x is the solution. (a) Use the GaussJordan function to solve the system: 2x x t4x,-2x4 19 3x +4x2 +2x,-x, 2x, +3322x +4x, 13 (b) Use the GaussJordan function to solve the system: 1 2 34 5 6191 1-3 2 5-46a 6 1 -24 3 63 3 2 -14 5 6x 4-2-13 6 5xs 5-6-3 4-21 37 81 69
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
