0
$\begingroup$

"Let $A$ be a $5\times 5$ random matrix and let $B = A^TA$ (note that the entries of the matrix $B$ are symmetric with respect to the diagonal. Such a matrix is called a symmetric matrix). Find a basis of eigenvectors for the matrix $B$, and check that this basis is orthogonal."

Does anyone know how to do this, especially in Matlab? I am only really familiar with how to find eigenvalues.

1 Answers 1

1

Given some A, there are two ways to find the eigenvectors of B=A'*A:

  1. [V, D] = eig(A'*A) and V is the required matrix of eigenvectors.

  2. (better!) [U, S, V] = svd(A) and U is the required matrix of eigenvectors.

  • 0
    Well, you did get something resembling the result of `eye()`, no?2011-12-03