Mu Analysis and Synthesis Toolbox    
veig

Calculate eigenvalues and eigenvectors of CONSTANT and VARYING matrices

Syntax

Description
veig is identical to MATLAB's command eig, but works on VARYING matrices. veig solves for the eigenvalues (evals) and optionally the eigenvectors (evecs) of the input matrix matin. veig works only on square CONSTANT or VARYING matrices. Depending on the input arguments, the following operations are performed:

evals = veig(matin) returns a VARYING vector evals containing the eigenvalues of the VARYING matrix matin for each independent variable.

[evecs,evals] = veig(matin) returns the VARYING diagonal matrix evals and a square VARYING matrix evecs whose columns are the corresponding eigenvectors for each independent variable.

[evecs,evals] = veig(matin,'nobalance') is the same as the above command without performing a preliminary balancing step. Balancing a matrix, which has very small entries due to round off error, can lead to incorrect eigenvectors.

[evecs,evals] = veig(mat1,mat2) returns a VARYING diagonal matrix of generalized eigenvalues evals and the corresponding values of generalized right eigenvectors evecs associated with each independent variable. mat1 and mat2 can be CONSTANT or VARYING matrices. If either is CONSTANT, then that same matrix is used in the generalized eigenvalue solution for each independent variable. If they are both VARYING matrices, then they must have the same independent variables.

Examples
Create a 2 x 2 random VARYING matrix and find its eigenvalues.

Using the same matrix and creating another two by two VARYING matrix, solve the generalized eigenvalue problem with these two matrices.

Algorithm
veig calls the MATLAB eig command.

See Also
eig, indvcmp, svd, vsvd, vpoly, vroots



vebe veval