Question: MATLAB code needed [10pt] Implement backward substitution to solve systems Uz b, i.e., write a function x = backward(A, b), which expects as inputs an
MATLAB code needed
[10pt] Implement backward substitution to solve systems Uz b, i.e., write a function x = backward(A, b), which expects as inputs an upper triangular matrix U E Rnxn, and a right hand side vector bE Rn, which returns the solution vector ER. The function should find the size n from the vector b and also check if the matrix and the vector sizes are compatible before it starts to solve the system. Please hand in your code. Apply your program for the computation of for x ER4, with 1 2 6 -1 -3 0 0 4-1 0 0 02
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
