2.33333

2.3 | 3 ratings Rate this file 7 Downloads (last 30 days) File Size: 470 Bytes File ID: #13813

Determination of the Eigenvalues using the QR-Decomposition

by Housam Binous

 

31 Jan 2007 (Updated 31 Jan 2007)

computes eigenvalues using QR decomposition

| Watch this File

File Information
Description

We use the QR-decomposition to obtain the eigenvalues of a matrix. The method is iterative and builds an upper-triangular matrix. The eigenvalues appear as the diagonal terms of this upper-triangular matrix. These values are found to be in agreement with those given by the Matlab built-in function: eig. A similar program using Mathematica is available at the following link:
http://library.wolfram.com/infocenter/MathSource/6612/

MATLAB release MATLAB 7.0.1 (R14SP1)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (4)
11 Feb 2008 Duane Hanselman

Here is what is in the script M-file:
A=[2., 3, 4, 5; 4, 2., 5, 6; 5, 7, 2., 7; 6, 8, 10, 2.];
M=A
for i=1:100;
    [Q,R] = qr(M);
    M=R*Q;
end
M
eig(A)

17 Apr 2008 Jackie Li

If the matrix is near sigular or sigular, does your code work right? Thanks.

20 Sep 2009 Nikolay  
11 Mar 2011 Longjiang Yu

Very excellent but maybe not work in complex eigenvalue, see the following link,
http://facstaff.unca.edu/mcmcclur/class/LinearII/presentations/html/QRAlgorithms.html

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
linear algebra Housam Binous 22 Oct 2008 08:58:49
qrdecomposition Housam Binous 22 Oct 2008 08:58:49
uppertriangular matrix Housam Binous 22 Oct 2008 08:58:49
iterative Housam Binous 22 Oct 2008 08:58:49
eigenvalues Housam Binous 22 Oct 2008 08:58:49
qrdecomposition Deng bupt 09 Jan 2009 09:32:39

Contact us at files@mathworks.com