Main Content
nchoosek
Binomial coefficient or all combinations
Description
Examples
Input Arguments
Output Arguments
Limitations
When
b = nchoosek(n,k)
is sufficiently large,nchoosek
displays a warning that the result might not be exact. In this case, the result is only accurate to 15 digits for double-precision inputs, or 8 digits for single-precision inputs.C = nchoosek(v,k)
is only practical for situations wherelength(v)
is less than about15
.
Extended Capabilities
Version History
Introduced before R2006a