[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
how to get index of array B data in array A
- Subject: how to get index of array B data in array A
- From: Gary Fu <gfu(at)seadas.gsfc.nasa.gov>
- Date: Thu, 11 Mar 1999 11:09:47 -0500
- Newsgroups: comp.lang.idl-pvwave
- Organization: NASA Goddard Space Flight Center -- Greenbelt, Maryland USA
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:13913
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 *
*****************************************