[AA,BB,Q,Z,V] = qz(A,B)
qz
function gives access to what are normally only intermediate results in the computation of generalized eigenvalues. For square matrices A
and B
, the statement
[AA,BB,Q,Z,V] = qz(A,B)
produces upper triangular matrices AA
and BB
, and matrices Q
and Z
containing the products of the left and right transformations, such that
Q
*A
*Z = AA
Q
*B
*Z = BB
qz
also returns the generalized eigenvector matrix V
.
The generalized eigenvalues are the diagonal elements of AA
and BB
so that
A*V*diag(BB) = B*V*diag(AA)
QZHES
, QZIT
, QZVAL
, and QZVEC
implement the QZ algorithm.
eig
(c) Copyright 1994 by The MathWorks, Inc.