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

Home » Public Forums » archive » Select Equal elements from 2 arrays
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
Select Equal elements from 2 arrays [message #60962] Mon, 23 June 2008 08:11
matthias.demuzere is currently offline  matthias.demuzere
Messages: 32
Registered: January 2006
Member
Dear all,

I have 2 arrays, of unequal length, who hold a number of indices that
are referring to a location of another array.
Now, I would like to choose these elements which appear in both arrays
A and B.

For example:

A = [0,8,16,36,49]
B =[1,8,33,36,49]

result = [8,49]

Isn't there a simple function to do that? I can't find anything
although I have tried with SORT, UNIQ and WHERE??

Thank you!
Matthias
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: System.exit from Java class
Next Topic: Re: Select Equal elements from 2 arrays

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

Current Time: Wed Oct 08 13:55:58 PDT 2025

Total time taken to generate the page: 0.00501 seconds