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

Home » Public Forums » archive » Sort
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: Sort [message #10242 is a reply to message #10241] Wed, 05 November 1997 00:00 Go to previous messageGo to previous message
Ian Sprod is currently offline  Ian Sprod
Messages: 5
Registered: November 1997
Junior Member
try ...

sorted_x = sort(x)

then sorted_x contains a vector of indices for the sorted version of x.
hence you can use sorted_x with either x,y or z (assuming they all have
the
same dimensiosn as you imply).

RTFM "sort" for more info.

Ian

Neil Winrow wrote:
>
> Can anybody please offer their help!
>
> I have three sets of data, X, Y, Z. I read these sets of data into one
> big array. I would like to sort one of the sets of data within the big
> array, lets say sort the Z data. Is it then possible for the
> corresponding values in the X and Y to also sort to the correct values.
> Hope someone can understand, and offer me a solution.
>
> Many Thanks In Advance
>
> Neil Winrow.

--

Ian E. Sprod
CIRES ian@ngdc.noaa.gov
NOAA/NGDC E/GC1 http://swat.ngdc.noaa.gov/~ian
325 Broadway 303-497-6284 (voice)
Boulder, CO 80303 303-497-6513 (fax)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL style sheet for a2ps
Next Topic: A rant: features vs. programming features

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

Current Time: Fri Oct 24 14:14:11 PDT 2025

Total time taken to generate the page: 1.27898 seconds