Path: news.mathworks.com!not-for-mail
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$1@newscl01ah.mathworks.com>
References: <iqcevu$mqk$1@newscl01ah.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: www-03-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1305191719 22083 172.30.248.48 (12 May 2011 09:15:19 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 12 May 2011 09:15:19 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 869721
Xref: news.mathworks.com 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)