MATLAB: Generate a combination

data mining

there are 4026 datas i want to take 2data from top 100 to genarate FCI,can u tell how to process please

Best Answer

data = 1:4026;
out = sort(data([1:100:end,2:100:end]));
or
out = data([1:100:end;2:100:end])'
or
out = bsxfun(@plus,sort([randi(100,floor(4026/100),2);randi(26,1,2)],2),(0:100:4000)');
Related Question