Prev: Remove rows with duplicates elements from a matrix
Next: $Wholesale Sports Shoes Clear Air Force One AAA++quality
From: Bruno Luong on 30 May 2010 08:10 "Robert " <rgrandl(a)yahoo.com> wrote in message <httjuc$6h5$1(a)fred.mathworks.com>... > Hi all, > > I am trying to remove rows which contains duplicates elements. > > For e.g.: > > X=[ 1 2 3 1 1; > 2 1 2 2 3; > 4 1 2 4 3; > 1 2 3 4 5; > ] > X(all(diff(sort(X,2),1,2),2),:) Bruno |