Question: Problem must be completed with MATLAB 1. Implement backward substitution in MATLAB. Your function signature should be function x = TRSV (T, b) where T
Problem must be completed with MATLAB

1. Implement backward substitution in MATLAB. Your function signature should be function x = TRSV (T, b) where T is an n-by-n array and b and x are n-by-1 arrays. Only the upper triangle of T should be accessed. 2. Implement Gaussian elimination in MATLAB. Your function signature should be function AGE(A) where A is an array. Your code should terminate with an error message when pivoting fails 3. Modify your code from Question 2 to perform partial pivoting; your function signature should be function A-GEPP(A) 4. Use your codes to solve a random linear system generated by N = 100 ; A = rand (N,N); xrand CN,1) b- A x; Estimate the error in the two computed solutions xhat by err = max (abs (x - xhat )) Did partial pivoting improve the accuracy
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
