This preview shows page 1. Sign up to view the full content.
Unformatted text preview: 2 matrix that changes each time you select it. Run it 10 times and determine which percentage of the matrices had real eigenvalues. You can compute the eigenvalues with the eig command each time or determine if they are real by visual inspection (which is faster). (3) The MATLAB command magic(n) produces an n n magic square: that is, a matrix of integers from 1 to n 2 such that each row, column and the two diagonals add up to the same number. Compute the eigenvalues of the magic matrices generated by MATLAB for n = 3, 4, and 5. What do you notice about the largest eigenvalue and its corresponding eigenvector (keep in mind that MATLAB produces eigenvectors of length 1, but any multiple of them will do)? What is your conjecture about the largest eigenvalue of magic(n) for all n ? Gerardo Laerriere, October 15, 2009 1...
View
Full
Document
This note was uploaded on 10/16/2011 for the course MTH 343 taught by Professor Lafferier during the Spring '09 term at Portland State.
 Spring '09
 Lafferier
 Linear Algebra, Algebra, matlab

Click to edit the document details