I have a list B which contains the indices of a classified elements and a bigger list A and I want to extract the elements of A using the indices in the list A.
Is there a simple way to do it ?
I used this line to get theses indices :
[sharedvals,idx] = intersect(A,B,'stable');
Thank you in advance for your answers.