23.12.2012 Views

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

eig<br />

2-470<br />

[V,D] = eig(A,B) produces a diagonal matrix D of generalized eigenvalues<br />

and a full matrix V whose columns are the corresponding eigenvectors so that<br />

A*V = B*V*D.<br />

[V,D] = eig(A,B,flag) specifies the algorithm used to compute eigenvalues<br />

and eigenvectors. flag can be:<br />

'chol' Computes the generalized eigenvalues of A and B using the<br />

Cholesky factorization of B. This is the default for symmetric<br />

(Hermitian) A and symmetric (Hermitian) positive definite B.<br />

'qz' Ignores the symmetry, if any, and uses the QZ algorithm as it<br />

would for nonsymmetric (non-Hermitian) A and B.<br />

Remarks The eigenvalue problem is to determine the nontrivial solutions of the equation<br />

Ax = λx<br />

where A is an n-by-n matrix, x is a length n column vector, and λ is a scalar.<br />

The n values of λ that satisfy the equation are the eigenvalues, and the<br />

corresponding values of x are the right eigenvectors. In <strong>MATLAB</strong>, the function<br />

eig solves for the eigenvalues λ , and optionally the eigenvectors x .<br />

The generalized eigenvalue problem is to determine the nontrivial solutions of<br />

the equation<br />

Ax = λBx<br />

where both A and B are n-by-n matrices and λ is a scalar. The values of λ that<br />

satisfy the equation are the generalized eigenvalues and the corresponding<br />

values of x are the generalized right eigenvectors.<br />

If B is nonsingular, the problem could be solved by reducing it to a standard<br />

eigenvalue problem<br />

B 1 – Ax = λx<br />

Because B<br />

can be singular, an alternative algorithm, called the QZ method, is<br />

necessary.<br />

When a matrix has no repeated eigenvalues, the eigenvectors are always<br />

independent and the eigenvector matrix V diagonalizes the original matrix A if<br />

applied as a similarity transformation. However, if a matrix has repeated

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!