Question: 13. Write a routine to generate an n by n matrix with a given 2-norm condition number. You can make your routine a function in

 13. Write a routine to generate an n by n matrix

with a given 2-norm condition number. You can make your routine a

13. Write a routine to generate an n by n matrix with a given 2-norm condition number. You can make your routine a function in MATLAB that takes two input arguments-the matrix size n and the desired condition number condno-and produces an n by n matrix A with the given condition number as output: function A = matgen (n, condno) Form A by generating two random orthogonal matrices U and v and a diagonal matrix with -condno-(1-1)/(n-1), and setting A = U V. [Note that the largest diagonal entry in is 1 and the smallest is condno1, so the ratio is condno.] You can generate a random orthogonal matrix in MATLAB by first generating a random matrix, Mat -randn (n, n), and then computing its QR

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!