Re: how do I search 1D array

2004-02-21 Thread Greg McKaskle
> I have a 1D array of elements from 1 to 100. each number is repeated > more than once in the array. i want to search the index when a new > number is found for the first time in my array. if my array is > {1,1,1,2,2,2,2,3,3,3,3,3,4,4,5,5,5,5} i want to find the index > when 1,2,3,4,5, are

how do I search 1D array

2004-02-18 Thread Mudda
I have a 1D array of elements from 1 to 100. each number is repeated more than once in the array. i want to search the index when a new number is found for the first time in my array. if my array is {1,1,1,2,2,2,2,3,3,3,3,3,4,4,5,5,5,5} i want to find the index when 1,2,3,4,5, are occured f