I need to find common elements in 2 different lenght vectors.
For example, I have a vector A with 10 elements, and a vector B with 3 elements.
I need get the position of which elements in A is equal to B.
A=[1,2,45,3,10,5,11,13,6,7]
B=[45,3,10]
C would be [3,4,5]
I have already tried "match" and "intercept" functions, but no success
Thanks a lot!
أكثر...
For example, I have a vector A with 10 elements, and a vector B with 3 elements.
I need get the position of which elements in A is equal to B.
A=[1,2,45,3,10,5,11,13,6,7]
B=[45,3,10]
C would be [3,4,5]
I have already tried "match" and "intercept" functions, but no success
Thanks a lot!
أكثر...