combination by pooq

a=scanf(f=" %d");for i=1:length(b=nchoosek(1:a(1),a(2)))disp(num2str(b(i,:),f))end

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page