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

Home » Public Forums » archive » Array comparison
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Array comparison [message #32357] Tue, 01 October 2002 15:08 Go to previous message
Sean Raffuse is currently offline  Sean Raffuse
Messages: 46
Registered: July 2001
Member
Hello,

I would like to compare two arrays of different size. What I want to know
is if the two arrays share ANY of the same values, regardless of index.

e.g.

Array1 = [1,2,3,4,5]
Array2 = [5,6,7]

Comparing these two arrays should return true because they both have the
value 5.

I know I could do this in a loop, but I need the speed and I'm sure IDL can
do this in one line. I'm just not sure how.

Thanks,

Sean Raffuse
[Message index]
 
Read Message
Read Message
Previous Topic: IDL_IDLBridge in Virtual Machine
Next Topic: Re: Deleting a variable from a NetCDF file

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

Current Time: Wed Oct 08 14:52:10 PDT 2025

Total time taken to generate the page: 0.00482 seconds