Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Idl-pvware > How to compare ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 5456 of 6020
Post > Topic >>

How to compare two vectors?

by Yann Zoll <y_z2000@[EMAIL PROTECTED] > Feb 22, 2008 at 01:24 PM

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
 




 2 Posts in Topic:
How to compare two vectors?
Yann Zoll <y_z2000@[EM  2008-02-22 13:24:14 
Re: How to compare two vectors?
Spon <christoph.blau@[  2008-02-22 05:37:55 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 17:21:43 CDT 2008.