Data sets membership comparison
Matlab | Scilab |
// a) AinB = ismember(A, B) // b) [AinB, loc] = ismember(A, B) // c) [rAinB, loc] = ismember(A, B, 'rows') |
In addition, Scilab provides the number of occurrences, can provide the locations of last occurrences instead of the first ones, can process A and B column-wise, and can ignore the order of elements in each row/column to be detected (detection of permutations).