Question: Write a MATLAB function that takes an array and sorts it with respect to descending ordering (from largest to smallest) using INSERTION SORT. Consider the
Write a MATLAB function that takes an array and sorts it with respect to descending ordering (from largest to smallest) using INSERTION SORT. Consider the matrix A and the vector b given below. A = [2 4 -2 4 1 5 5 11 -1 -3 -2 -4 2 6 6 8], b = [5 9 4 2] a) Apply forward elimination with partial pivoting to the pair [A|b] b) Apply backward substitution to the result you found in part b) to find the solution of Ax = b c) Compute determinant of A using forward elimination with partial pivoting d) Find inverse of A by first applying forward elimination with partial pivoting then applying backward elimination
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
