MATLAB: Wrong output from eigs function

eigenvalues

I've been having problmens when using the eigs command. So i tried just tiping [A,V]=eigs(eye(10)) where i expected two identity matrices as output. Except that it returns two 10×6 matrices whose non zero input are not even one. What am i doing wrong?

Best Answer

According to the documentation of eigs(), by default, it returns 6 largest eigenvalues and their corresponding eigenvectors. Matrix V contains the eigen values along the diagonal, whereas matrix A contains six eigen vectors, one in each column.
Related Question