Watch this Author's files
fixed this. file should now work with M x N matrices, N>2
Must simpler would be:
[unique_sorted,i,j] = unique(A,'rows','first'); B = A(sort(i),:);
does not work on matrices M x N with N > 2, since your statement B = unsorted(:,2:3); should read B = unsorted(:,2:end);
us
Comment only
3
Contact us at files@mathworks.com
Comment only