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

Home » Public Forums » archive » 2d where
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
2d where [message #39033] Tue, 13 April 2004 09:30
GrahamWilsonCA is currently offline  GrahamWilsonCA
Messages: 12
Registered: January 2003
Junior Member
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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Pointers in IDL
Next Topic: dimension problem in matrix multiplication

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

Current Time: Wed Oct 08 15:33:44 PDT 2025

Total time taken to generate the page: 0.00475 seconds