MATLAB: How to determine the non repeated coordinates of an array

non repeated coordinates

X=[3 4;2 1;5 6]; Y=[1 2;3 4;2 1]; C=intersect(X,Y,'rows') numberCommonRows = size(C,1); from this I can determine the values [3 4]&[2 1] How to get the remaining coordinates? Thanks in advance…

Best Answer

For X, type
Cx=setdiff(X,Y,'rows')
For Y, type
Cy=setdiff(Y,X,'rows')
and see the results.