So I am trying to get matlab to output the correct eigenvalue/eigenvector of a matrix. The matrix is: \begin{array}{ccc} 0 & 1 \\ -3 & -4 \end{array}
The eigenvalues are: $\lambda_1 = -1, \lambda_2=-3$
Therefore the eigenvector that I calculated and that wolframalpha verifies is: \begin{array}{ccc} 1 & 1 \\ -1 & -3 \end{array}
However, when I run the following matlab code:
A = [0 1; -3 -4;];
[T,lambda] = eig(A)
I get the following as the output:
T =
0.7071 -0.3162
-0.7071 0.9487
I understand that the ratios are correct (i.e $\frac{-.3162}{.9487}=-3$) but I want it to output the eigenvector as whole numbers like how I calculated above. Is there anyway to do that?
Based on Amzoti's answer/comment, using the symbolic toolbox you could use the following to get the desired integral solution: