comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: sorting array column/rowwise
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: sorting array column/rowwise [message #31324 is a reply to message #31323] Thu, 04 July 2002 00:37 Go to previous messageGo to previous message
marc schellens[1] is currently offline  marc schellens[1]
Messages: 183
Registered: January 2000
Senior Member
Paul Sorenson wrote:
> Have you looked at the SORT routine? The following example sorts by the
> first column of a.
>
> IDL> a = randomu(seed, 4, 4)
> IDL> print, a[*, sort(a[0, *])]
> 0.303753 0.933435 0.723623 0.636985
> 0.535081 0.804346 0.313356 0.620587
> 0.574060 0.790996 0.821293 0.671731
> 0.799868 0.0666149 0.123060 0.281230

Thanks Paul,

but I wanted to sort each column individually.
Any guesses?

marc
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: gamma correction
Next Topic: write_jpeg and TVRD()

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:35:33 PDT 2025

Total time taken to generate the page: 0.00452 seconds