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

Home » Public Forums » archive » WHERE problems (longish)
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Where problem [message #69670 is a reply to message #35914] Thu, 04 February 2010 01:59 Go to previous messageGo to previous message
Foldy Lajos is currently offline  Foldy Lajos
Messages: 268
Registered: October 2001
Senior Member
On Thu, 4 Feb 2010, Dave_Poreh wrote:

> On Feb 4, 1:33 am, FÖLDY Lajos <fo...@rmki.kfki.hu> wrote:
>> On Thu, 4 Feb 2010, Dave_Poreh wrote:
>>> Folks
>>> I can?t solve this problem. Will somebody tells me what is going on?
>>> x=findgen(100)
>>> y=[30,40,50,80]*1.0
>>> index=where(x eq y)
>>> but every time gives me:
>>>> index=-1
>>> Any help highly appreciated
>>> Cheers
>>> Dave
>>
>> Try 'help, x eq y' and 'print, x eq y'.
>>
>> ('x eq y' is equivalent to '[0.,1.,2.,3.] eq [30.,40.,50.,80.]')
>>
>> regards,
>> lajos
>
> Thanks. What I am trying to do is to extract index of 30,40,50, and
> 80 in the array of x. I mean
> X[index]=30, X[index]=40, and so on.
> What I have to do?
> Cheers
>

IDL> print, value_locate(x,y)
30 40 50 80

regards,
lajos
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: questions onn symbol and fonts
Next Topic: File Delete -- Friggin A!!

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

Current Time: Sat Oct 11 06:44:28 PDT 2025

Total time taken to generate the page: 0.64277 seconds