
Repeat loop  help
Posted:
Sep 13, 2013 5:40 AM


I tried the following
c=1; for c=1:10;
> D = maximin(n1,n2,'euclidean'); > M = min(D,[],2); ; > C=[D M]; > [maxValue, rowIdx] = max(C(:,end),[],1); %max value and the row index > n1(end+1,:) = n2(rowIdx,:); %Copy selected row to bottom of n1 > n2(rowIdx,:) = [];
c=c+1 end
It gives me n1=60*50, but n2=29*30 instead of 20*30

