Question: MATLAB HELP! Programming: 1. Write a function in Matlab that takes as input the number n, an n n upper triangular matrix G, and an

MATLAB HELP!

Programming: 1. Write a function in Matlab that takes as input the number n, an n n upper triangular matrix G, and an n-component column vector b, and returns as output the solution of G~y = ~b, using back substitution, and the number of flops used. Use only programming basics.

(a) Write out or print out your program.

(b) Create cases of your choice with n = 100, 200, 400 to run your function. Write down the number of flops used in each case.

(c) What lines in the program can you change if G were lower triangular instead of upper triangular?

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!