attached my matrix "M" and here is my code.
[trash,idx] = unique(M,'rows');pleb=M(idx,:)gg=sort(pleb)
When inspecting gg we see that there are still duplicate rows.
I've also tried to do it in different ways, for example;
[~, III, ~] = unique(M,'first','rows'); %removing double points
III = sort(III);pleb = M(III,:);gg=sort(pleb);
But they either delete non duplicate data, or delete too few data.
What am I doing wrong?
Best Answer