C++ Math Library Reference | ![]() ![]() |
All combinations of the n
elements in v
taken k
at a time
C++ Prototype
mwArray nchoosek(const mwArray &v, const mwArray &k);
C++ Syntax
#include "matlab.hpp" mwArray v, k; // Input argument(s) mwArray C; // Return value C = nchoosek(v,k);
MATLAB Syntax
C = nchoosek(v,k)
See Also
nchoosek
Calling Conventions![]() | nargchk | ndims | ![]() |