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

Home » Public Forums » archive » Re: loop for where command
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: loop for where command [message #43037] Wed, 09 March 2005 15:53 Go to next message
Benjamin Hornberger is currently offline  Benjamin Hornberger
Messages: 258
Registered: March 2004
Senior Member
aswatantran@gmail.com wrote:
> i have an array eg. polygonids[1,1,2,2,3,3,3,4,5,5,5,6,6,7,7,8,8,9,10].
> i want to extract all the subscripts which have the same value into
> separate arrays

I think the HISTOGRAM function does what you want (use the
REVERSE_INDICES keyword).

Have a look at the histogram tutorial at

http://www.dfanning.com/tips/histogram_tutorial.html

Good luck,

Benjamin
Re: loop for where command [message #43186 is a reply to message #43037] Thu, 17 March 2005 11:17 Go to previous message
aswatantran is currently offline  aswatantran
Messages: 3
Registered: March 2005
Junior Member
hi

thanks for the tip .. it works !!
but i am not able to extract the data further into separate arrays

Thanks
Anu
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: changing array dimensions
Next Topic: loop for where command

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

Current Time: Fri Oct 10 09:19:39 PDT 2025

Total time taken to generate the page: 1.83848 seconds