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

Home » Public Forums » archive » Re: Array functions
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
Re: Array functions [message #33045] Mon, 25 November 2002 22:12
meron is currently offline  meron
Messages: 51
Registered: July 1995
Member
In article <3DE30EBA.4DA572E5@ee.uwa.edu.au>, Thomas Gutzler <tgutzler@ee.uwa.edu.au> writes:
> Hi,
>
> I am looking for a function that does something like that with an array:
> x=[1,0,2,0,3]
> function(x,0) should return [1,3] what means:
> the 1st and 3rd element of x have the value 0.
>
> Does it exist or have I to write it by myself ?
>
Function(x,k) = where(x eq k)

Mati Meron | "When you argue with a fool,
meron@cars.uchicago.edu | chances are he is doing just the same"
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Array functions
Next Topic: Matrix Vector Multiply in IDL

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

Current Time: Wed Oct 08 13:53:10 PDT 2025

Total time taken to generate the page: 0.00521 seconds