2. Use eigenvals to calculate the eigenvalues of the above matrices.
3. Use genvals to compute a vector of eigenvalues.
The genvals function returns a vector of computed eigenvalues, vi, each of which satisfies the generalized eigenvalue problem M · x = vi · N · x for its associated eigenvector xi.
4. Call genvecs with the last parameter set to L, meaning that left eigenvectors are calculated.
The genvecs function returns a matrix containing the normalized left eigenvectors corresponding to the eigenvalues in the vector returned by genvals that was generated in the previous step.