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 #69671 is a reply to message #35914] Thu, 04 February 2010 01:47 Go to previous messageGo to previous message
d.poreh is currently offline  d.poreh
Messages: 406
Registered: October 2007
Senior Member
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
[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: Wed Oct 08 15:48:32 PDT 2025

Total time taken to generate the page: 0.23590 seconds