MATLAB: Having the eigenvalue of the matrix (Hamiltonian), how can I get the eigenvector associated with it

eigenvalue eigenvector matrix

Hello, I have a given eigenvalue (energy) of my matrix (Hamiltonian), which is known. Now I want to obtain the eigenvector associated with it? Is there any function similar to eig to do so? Thanks in advance.

Best Answer

V=null(A-eigenvalue*eye(size(A))