Re: loop for where command [message #43037] |
Wed, 09 March 2005 15:53  |
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
|
|
|
|