By passing two extra arguments to diag, you can specify the dimensions of the output. Create a 20-by-21 matrix with ones on the main diagonal. Now add a row of zeros above this to create a 21-by-21...


By passing two extra arguments to diag, you can specify the dimensions of the


output. Create a 20-by-21 matrix with ones on the main diagonal. Now add a row


of zeros above this to create a 21-by-21 square matrix, where the ones are offset a


row below the main diagonal.


Create another matrix with the ones offset one up from the diagonal.


Add these two matrices together, then add the answer from  4-2. The re‐


sultant matrix is called a Wilkinson matrix.


The eigen function calculates eigenvalues and eigenvectors of a matrix. Calculate


the eigenvalues for your Wilkinson matrix. What do you notice about them? [20]



May 26, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here