Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!helios!bcm!rice!uw-beaver!milton!dali.cs.montana.edu!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!decwrl!ucbvax!ucdavis!caldwr!rfinch From: rfinch@caldwr.water.ca.gov (Ralph Finch) Newsgroups: comp.lang.idl-pvwave Subject: comparing arrays Message-ID: <265@locke.water.ca.gov> Date: 2 Mar 91 00:18:11 GMT Organization: Calif. Depart. of Water Resources, Sac. Lines: 15 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