[comp.lang.idl-pvwave] comparing arrays

rfinch@caldwr.water.ca.gov (Ralph Finch) (03/02/91)

PV-Wave 3.02.

I need to find all elements in 1 array that are in another.  I'd like
to do this:

a=[1,2,3,4,5]
b=[2,4]
index=where(a eq b)

However, it doesn't work.  Any ideas?
-- 
Ralph Finch			916-445-0088
rfinch@water.ca.gov		...ucbvax!ucdavis!caldwr!rfinch
Any opinions expressed are my own; they do not represent the DWR