I'm currently using the command: [V, D] = eig(X)

Where V are the eigenvectors and D are the eigenvalues in a diagonal matrix. Any idea on how I can create Y, a matrix of eigenvectors corresponding to the p largest eigenvalues?