However, this is not the correct answer
You're assuming there is only one correct answer. That is not a valid assumption in this case.
Multiplying the eigenvector by any non-zero scalar just scales the eigenvector, and that scaled eigenvector still satisfies the equation that eigenvectors must satisfy. This makes sense if you look at the essential definition according to Wikipedia. "In essence, an eigenvector v of a linear transformation T is a non-zero vector that, when T is applied to it, does not change direction. Applying T to the eigenvector only scales the eigenvector by the scalar value λ, called an eigenvalue."
See this example:
[V, D] = eig(A)
shouldBeCloseToZeroVector1 = A*V(:, 1) - V(:, 1) * D(1, 1)
twice = 2*V(:, 1);
shouldBeCloseToZeroVector2 = A*twice - twice * D(1, 1)
This is not a bug.
Best Answer