Re: A question about sort
- To: mathgroup at smc.vnet.net
- Subject: [mg48204] Re: A question about sort
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Tue, 18 May 2004 04:16:05 -0400 (EDT)
- Organization: Universitaet Leipzig
- References: <c89q6d$t65$1@smc.vnet.net>
- Reply-to: kuska at informatik.uni-leipzig.de
- Sender: owner-wri-mathgroup at wolfram.com
Hi,
m = Table[Random[], {3}, {3}];
and
Transpose[Sort[Transpose[Eigensystem[m]], First[#1] < First[#2] &]]
sort eigenvalues and eigenvectors beginning with the smalest
eigenvalue.
Regards
Jens
Daohua Song wrote:
>
> Hi everyone,
> When i get the eigenvalues and eigenvectors for a matrix. i want to
> sort the eigenvalues and hope eigenvectors change the positions
> correspondingly. How to do it ?
> Thanks
> Song