Checks which elements of one matrix are member of an other matrix
tf = moc_ismember (A, S) [tf,S_idx] = moc_ismember (A, S) [tf,S_idx] = moc_ismember (A, S,'rows')
Return a matrix tf with the same shape as A which has a 1 if A(i,j) is in S and 0 if it is not. If a second output argument is requested, the index into S of each of the matching elements is also returned.
With the optional third argument "rows", and matrices A and S with the same number of columns, compare rows in A with the rows in S.