Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

**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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions