Question: Please submit the matlab code for the next exercise. Not allow to use build in functions. Only allow if while; for, size and arithmetic operations.
You will create a function that finds the unique solution to Ax-b equation using Gaussian elimination with partial pivoting (using the absolute maximum possible value of the active column for the pivot) where A is a square matrix and b is a column vector of the same height. The function will take A and b as inputs and give x as the output. Part 1: (Due March 21, 2018 by 8 am) Start by writing a function (with comments) to achieve these: Determine if the matrix A is square. Augment A and b. Find the haximum absolute value in the first column and the row number that this belongs to. Interchange the first row with the row with the maximum first-column-entry. (To achieve this, create a sub- function that interchanges two specified rows for any matrix.) Submit a single m-file with a subfunction that switches rows
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
