Functions > Vector and Matrix > Array Characteristics > Example: Using genvals and genvecs Functions
Example: Using genvals and genvecs Functions
1. Define two square matrices.
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.
Was this helpful?