C Math Library Reference | ![]() ![]() |
All combinations of the n elements in v
taken k at a time
C Prototype
mxArray *mlfNchoosek(mxArray *v, mxArray *k);
C Syntax
#include "matlab.h" mxArray *v; /* Required input vector of length n */ mxArray *k; /* Required input scalar, group size */ mxArray *C = NULL; /* Output array of combinations */ mlfAssign(&C, mlfNchoosek(v,k));
MATLAB Syntax
C = nchoosek(v,k)
See Also
nchoosek
Calling Conventions![]() | mlfNargchk | mlfNdims | ![]() |