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

Home » Public Forums » archive » How to compare two vectors?
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
How to compare two vectors? [message #58856] Fri, 22 February 2008 04:24
Yann Zoll is currently offline  Yann Zoll
Messages: 4
Registered: February 2008
Junior Member
Hi,

i have a the matrices

a = [0,2,5,8,9] and
b = [2,9].

Both are much longer in real life but still monotonously increasing.
What i want is a matrix c, containing the indices of a, where an element
of b is found in a. In this example it would be

c = [1,4].

Is it possible to do this with "where"?

Yann
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL 7 synchronisation
Next Topic: Re: How to compare two vectors?

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

Current Time: Wed Oct 08 15:27:58 PDT 2025

Total time taken to generate the page: 0.00448 seconds