%QZ     QZ factorization for generalized eigenvalues.
%   [AA, BB, Q, Z, V] = QZ(A,B) for square matrices A and B, produces
%   upper quasitriangular matrices AA and BB, unitary matrices
%   Q and Z containing the products of the left and right trans-
%   formations, such that Q*A*Z = AA, and Q*B*Z = BB, and the
%   generalized eigenvector matrix V.
% 
%   For complex matrices, AA and BB are triangular.  For real
%   matrices, QZ(A,B,'real') produces a real decomposition with a
%   quasitriangular AA, while QZ(A,B,'complex') produces a
%   possibly complex decomposition with a triangular AA.  For
%   compatibility with earlier versions, 'complex' is the default.
%
%   If AA is triangular, the alphas and betas comprising the
%   generalized eigenvalues are the diagonal elements of AA and BB
%   so that A*V*diag(BB) = B*V*diag(AA).  If AA is quaditriangular
%   it is necessary to solve 2-by-2 generalized problems to obtain
%   the actual eigenvalues.
%
%   See also EIG.

%   Copyright 1984-2000 The MathWorks, Inc. 
%   $Revision: 5.11 $  $Date: 2000/06/01 02:04:14 $
%   Built-in function.
