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


|