仅供参考
M=[0,0;
1,1;
1,2;
1,3;
2,1;
3,1;
3,2;
4,1;
4,2];
T=[0,0;
1,1;
1,2;
2,1];
[r,v]=size(M);
[C,ia,ib] = intersect(M,T,'rows');
C1 = M(setdiff(1:r,ia),:)
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!