If the run the following code it works.
M=rand(14); for N=2:5 c=randperm(length(M),N) B=M(c,:) % output matrix
end
but the rows are getting repeated again and again .How can i avoid the duplicate rows not to get repeat it again .
eliminating duplicate rows
M=rand(14); for N=2:5 c=randperm(length(M),N) B=M(c,:) % output matrix
end
Best Answer