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
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
Get step-by-step solutions from verified subject matter experts
