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

Home » Public Forums » archive » help with sorting vector elements in to subarrays
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: help with sorting vector elements in to subarrays [message #80447 is a reply to message #80234] Thu, 31 May 2012 07:49 Go to previous messageGo to previous message
greg.addr is currently offline  greg.addr
Messages: 160
Registered: May 2007
Senior Member
If you want to record the sequences, the tricky part is to deal with their variable lengths. If you're using 8.x, you could try putting them in a list:

sequence=list()

then...
sequence.add,where(ss[i] eq amp)

print,sequence[i]

Or the older way was to use an array of pointers:

sequence=ptrarr(n_elements(ss))

...
sequence[i]=ptr_new(where(ss[i] eq amp))

print,*sequence[i]

greg
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: help with mathematics
Next Topic: put a variable in 2D-array to plot a contour on a map.

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

Current Time: Wed Oct 08 17:29:23 PDT 2025

Total time taken to generate the page: 0.00406 seconds