from Determination of the Eigenvalues using the QR-Decomposition by Housam Binous
computes eigenvalues using QR decomposition

eigen_QR_Method.m
% Author: Housam Binous

% Eigenvalues obtained using QR-Method

% National Institute of Applied Sciences and Technology, Tunis, TUNISIA

% Email: binoushousam@yahoo.com

% Reference :
% A. Quarteroni, R. Sacco and F. Saleri, Mthodes numriques 
% pour le calcul scientifique, Programmes en Matlab, 
% Springer, Paris, 2000

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)

Contact us at files@mathworks.com