MATLAB: A=[6 6;7 8;0 9;9 10] B=[6 6;0 9] how to find Matrix C with rows not in B but in A

comparisonMATLABmatrixmatrix manipulation

A=[6 6;7 8;0 9;9 10]
B=[6 6;0 9]
how to find Matrix C with row not in B but in A?

Best Answer

See ismember() with the 'rows' option. And use logical indexing.