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

Home » Public Forums » archive » Re: How to compare two vectors?
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: How to compare two vectors? [message #58853] Fri, 22 February 2008 05:37
Spon is currently offline  Spon
Messages: 178
Registered: September 2007
Senior Member
On Feb 22, 12:24 pm, Yann Zoll <y_z2...@yahoo.de> wrote:
> 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

Have a look at LISTMATCH, here:
http://www.dfanning.com/tips/set_operations.html

All the best,
Chris
[Message index]
 
Read Message
Previous Topic: How to compare two vectors?
Next Topic: Histogram and bin sizes

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

Current Time: Thu Oct 09 22:25:15 PDT 2025

Total time taken to generate the page: 1.44088 seconds