comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » comparing arrays
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
comparing arrays [message #16] Fri, 01 March 1991 16:18
rfinch is currently offline  rfinch
Messages: 51
Registered: March 1991
Member
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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Driver for Imaging Technology FG-100-Q
Next Topic: Getting axis output ranges

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Nov 28 09:42:36 PST 2025

Total time taken to generate the page: 0.44224 seconds