Combinations, n choose k
Version 1.0.0.0 (1,26 KB) von
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
Zitieren als
Bruce Raine (2024). Combinations, n choose k (https://www.mathworks.com/matlabcentral/fileexchange/32626-combinations-n-choose-k), MATLAB Central File Exchange. Abgerufen .
Kompatibilität der MATLAB-Version
Erstellt mit
R2011a
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS LinuxKategorien
- MATLAB > Mathematics > Elementary Math >
- MATLAB > Mathematics > Elementary Math > Discrete Math >
Mehr zu Elementary Math finden Sie in Help Center und MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.0.0.0 |