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 
Return to the default flat view Create a new topic Submit Reply
Re: loop for where command [message #43037] Wed, 09 March 2005 15:53 Go to previous 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
[Message index]
 
Read Message
Read Message
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 23:53:18 PDT 2025

Total time taken to generate the page: 0.40101 seconds