Hello,
class = [1 1 1 -1 -1 1];
This is is what I need:
idx1 = find(class == 1); %retrieve the indexes of '1': 1,2,3,6
idx2 = find(class == -1); % retrieve 4,5
But I'd like to know if it's possible write it in a hit (and I need 2 different variables, id2, idx2)
[idx1, idx2] = find(class == 1; class == -1) %this dosn't work.
thanks,