Re: 2d where [message #39030 is a reply to message #39024] |
Tue, 13 April 2004 10:50  |
R.Bauer
Messages: 1424 Registered: November 1998
|
Senior Member |
|
|
Graham wrote:
> I have read through the IDL documentation and while it does explain
> why the following doesn't work, it doesn't offer any alternatives :(
>
> I am trying to find the indexes where the elements of 'bar' are equal
> to 'foo'.
>
> IDL> foo = ["a", "b", "c", "d", "e", "f"]
> IDL> bar = ["b", "e"]
> IDL> print, where(foo eq bar)
> -1
> PERFECTDL> print, where(foo eq bar)
> 1 4
>
> Any ideas?
>
> Graham
Dear Graham
I believe this is duplicated to a thread on the archive
http://groups.google.de/groups?hl=de&lr=&ie=ISO-8859 -1&q=Vector+compariso
+group%3Acomp.lang.idl-pvwave&btnG=Suche&meta=group% 3Dcomp.lang.idl-pvwave
There were 22 entries about this question.
Cheers
Reimar
--
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
http://www.fz-juelich.de/icg/icg-i/
============================================================ ======
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
|
|
|