Question: **Using MatLab An upper triangular matrix is a square matrix with all zeros BELOW the diagonal elements. Write a function with header [x] = myBackwardSub(U,

**Using MatLab

An upper triangular matrix is a square matrix with all zeros BELOW the diagonal elements. Write a function with header [x] = myBackwardSub(U, b) which solves Ax = b for x given an nxn upper triangular matrix A and an nx1 vector b. Use nested for loops, do not use built in Matlab functions inv, pinv, \.

Test Case:

 >> myBackwardSub(U,b2) ans = 
 -0.8478 -0.4857 0.6403 -0.7030 1.9769 

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!