a{1}=[1 3 4 5; 3 3 4 5; 5 5 4 5 2 4 2 6; 6 5 2 6 7 2 3 1;][b,idx]=unique(a{1}(:,3:4),'rows','stable');uniquematrix{1}=a{1}(idx,:)1 3 4 5 %Content of uniquematrix{1}
2 4 2 67 2 3 1
After a{1}-uniquematrix{1}
3 3 4 5 %My desired output
5 5 4 56 5 2 6
Is there a function to directly perform a{1}-uniquematrix{1}?
Best Answer