Question: Please solve using MATLAB, thanks! Programming 1. (a) Write a function that takes as input dimension n; diimension n -n n matrix A; calculates the

Please solve using MATLAB, thanks!  Please solve using MATLAB, thanks! Programming 1. (a) Write a function

Programming 1. (a) Write a function that takes as input dimension n; diimension n -n n matrix A; calculates the infinity norm of A using the formula oo = max (b) Let A = the tridiagonal matrix with p's for elements on the main diago- nal and q's for elements on the lower diagonal and r's for elements on the upper diagonal. For n = 100 and (p,q,r) = (2,-1,-1) and (4,2,1) and (-10,3,-5), have Matlab calculate A-1 using the command: inv(A), and write out or print out the results of your function on A

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!