Given two vectors A and B,
I want to find the index of elements of B in A
A = ["G1", "V2", "G3", "G4", "V1"]
[sharedvals,idxs] = intersect(A, B, 'stable')
The above returns
Could someone suggest how to obtain the expected result?