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]
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here