From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: help on eigen values
Date: Thu, 12 May 2011 09:15:19 +0000 (UTC)
Organization: Universit&#228;t Graz
Lines: 7
Message-ID: <iqg8f7$li3$>
References: <iqcevu$mqk$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1305191719 22083 (12 May 2011 09:15:19 GMT)
NNTP-Posting-Date: Thu, 12 May 2011 09:15:19 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 869721
Xref: comp.soft-sys.matlab:726322

> I need to find the eigen values of this matrix and i have used the code,
>  lamda1= eig(temp)
>  finalmean=mean(lamda1)

I don't know what your application is, but I see you compute the mean of the eigenvalues. If you only needed this value for whatever reason and not the individual eigenvalues, you could obtain it more quickly with trace(A)/size(A,1)