Path: news.mathworks.com!newsfeed-00.mathworks.com!newscon02.news.prodigy.net!prodigy.net!news.glorb.com!postnews.google.com!19g2000hsx.googlegroups.com!not-for-mail
From:  "J.N." <joao.natali@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Eigen value and Eigen vector?
Date: Fri, 17 Aug 2007 00:21:08 -0000
Organization: http://groups.google.com
Lines: 19
Message-ID: <1187310068.805535.110740@19g2000hsx.googlegroups.com>
References: <fa2bhu$5bp$1@fred.mathworks.com>
NNTP-Posting-Host: 128.238.52.136
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
X-Trace: posting.google.com 1187310069 31735 127.0.0.1 (17 Aug 2007 00:21:09 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Fri, 17 Aug 2007 00:21:09 +0000 (UTC)
In-Reply-To: <fa2bhu$5bp$1@fred.mathworks.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6,gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: 19g2000hsx.googlegroups.com; posting-host=128.238.52.136;
Xref: news.mathworks.com comp.soft-sys.matlab:424226



On Aug 16, 4:20 pm, "stephen " <huan...@nationwide.com> wrote:
> Hi,
>
> Matlab function [V,D]=eig() would generate eigenvalues in
> ascending order and the associated eigenvectors.
>
> Is there an easy way to generate eigenvalues and
> associated eigenvectors in descending order?
>
> Thanks,
> Stephen

There's probably an easier way, but, if not, try:
 [V,D]=eig()
 V = V(:,length(V(:,1)):-1:1) ;
 D = D(length(D(1,:)):-1:1,length(D(:,1)):-1:1) ;

Joao