Combinations, n choose k
版本 1.0.0.0 (1.3 KB) 作者:
Bruce Raine
This function finds the combinations of n choose k.
The combination function seems to be missing from MATLAB so this rendition fills the gap.
MYCOMBNK returns combinatorial of n choose k i.e all unique combinations of n elements taken k at a time.
EX: >> mycombnk(6,2)
ans = 15
引用格式
Bruce Raine (2024). Combinations, n choose k (https://www.mathworks.com/matlabcentral/fileexchange/32626-combinations-n-choose-k), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R2011a
兼容任何版本
平台兼容性
Windows macOS Linux类别
- MATLAB > Mathematics > Elementary Math >
- MATLAB > Mathematics > Elementary Math > Discrete Math >
在 Help Center 和 MATLAB Answers 中查找有关 Elementary Math 的更多信息
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0.0 |