I have an array which is 10 by 6. the array is data. I want to be able to select random rows from the array and to be assigned to ii and jj. And also want to make sure that ii and jj are never the same.I have done that part but i am having difficulty selecting the random rows from the array.
pair = [];for ii =1:p for jj=1:p if (ii~=jj) newPair =[ii,jj]; pair= [pair; newPair]; end end end
Best Answer