MATLAB: How to find similar points in two different matrices

image processingmatrixpointsimilar

I have 2 matrices, let say M=[224 345; 225 455; 227 698] and N=[224 345; 228 567; 229 677]. i want to find the similar points and put them in new matrix as x and y.
the answer should be C=[224 345] as a point.

Best Answer

>> X = ismembertol(M,N,'ByRows',true);
>> C = M(X,:)
C =
224 345