% -*- texinfo -*- % @deftypefn {Function File} @var{rval}= {} combs(@var{sym_set},@var{k}) % Function generates the nchoosek(N,K) combinations, and returns it. % compute the combinations nchoosek(length(@var{sym_set}), @var{k}) % nchoosek is a much faster variant of this function. % @example % @group % % combs([1,2,3],2) % %%returns value [1 2; 1 3; 2 3] % % combs(['a','e','i','o','u'],2) % %%returns value [['a', 'e']; ['a', 'i']; ['a','o']; ['a','u']; ['e', 'i']; % %%['e','o']; ['e','u']; ['i','o']; ['i','u']; ['o', 'u'];] % % @end group % @end example % @end deftypefn % @seealso {perms, nchoosek}