[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how to get index of array B data in array A



Hi,

Is there a simple way to get the index of the array B data in array A ?

For example : A = [10,20,30,40,50],  B = [10, 20, 33, 10, 30, 40, 9]
I want like to get the index array of B in A [0, 1, -1, 0, 2, 3, -1]
 
Thanks.

Gary

-- 

*****************************************
* Gary Fu, GSC (301) 286-7107           *
* email : "gfu@seadas.gsfc.nasa.gov"    *
* NASA/Goddard Space Flight Center      * 
*****************************************