Good afternoon,
I would like to know how to associate values from an array A to the same value in an array B, without sorting the arrays.
For example, if A=[1;3;7;2;5] and B=[5;7;2;1;3]
I tried [row,col]=find(A==B) in a for loop but it returns "Empty matrix: 0-by-1"
At the end, I would like to know which index of B correspond to the current index of A.
Many thanks,
Matthieu
Best Answer