combination by teebee

a=scanf(s="%d ");for c=nchoosek(1:a,a(2))'disp(num2str(c',s))end

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

download

return to the top page