Home > freetb4matlab > linear-algebra > condeig.m

condeig

PURPOSE

% Compute condition numbers of the eigenvalues of a matrix. The

SYNOPSIS

function [v, lambda, c] = condeig (a)

DESCRIPTION

```% -*- texinfo -*-
% @deftypefn {Function File} {@var{c} =} condeig (@var{a})
% @deftypefnx {Function File} {[@var{v}, @var{lambda}, @var{c}] =} condeig (@var{a})
% Compute condition numbers of the eigenvalues of a matrix. The
% condition numbers are the reciprocals of the cosines of the angles
% between the left and right eigenvectors.
%
%
% @itemize @bullet
% @item
% @var{a} must be a square numeric matrix.
% @end itemize
%
% @subheading Return values
%
% @itemize @bullet
% @item
% @var{c} is a vector of condition numbers of the eigenvalue of
% @var{a}.
%
% @item
% @var{v} is the matrix of right eigenvectors of @var{a}. The result is
% the same as for @code{[v, lambda] = eig (a)}.
%
% @item
% @var{lambda} is the diagonal matrix of eigenvalues of @var{a}. The
% result is the same as for @code{[v, lambda] = eig (a)}.
% @end itemize
%
%
% @example
% @group
% a = [1, 2; 3, 4];
% c = condeig (a)
% @result{} [1.0150; 1.0150]
% @end group
% @end example
% @end deftypefn```

CROSS-REFERENCE INFORMATION

This function calls:
• dot % Computes the dot product of two vectors. If @var{x} and @var{y}
This function is called by:

Generated on Sat 16-May-2009 00:04:49 by m2html © 2003