www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/AllCombinationsofThreeUnsignedIntegersTakenTwoataTimeExample.m

    %% All Combinations of Three Unsigned Integers Taken Two at a Time  

%%  
v = uint16([10 20 30]);
C = nchoosek(v,uint16(2))