> Are these triples equivalent because order is not important, or because sign is not important? If the former
>
> unique(sort(x,2),'rows');
====================
Also forgot to say, but the matrix M pops out different values every time because it uses "randi", so the results for the x(i,:) are can sometimes have repeats and sometimes not have any repeats.
Does this affect the use of unique(sort(x,2),'rows'); ?