Combinations, n choose k
Versione 1.0.0.0 (1,26 KB) da
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
Cita come
Bruce Raine (2024). Combinations, n choose k (https://www.mathworks.com/matlabcentral/fileexchange/32626-combinations-n-choose-k), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Creato con
R2011a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS LinuxCategorie
- MATLAB > Mathematics > Elementary Math >
- MATLAB > Mathematics > Elementary Math > Discrete Math >
Scopri di più su Elementary Math in Help Center e MATLAB Answers
Tag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
Versione | Pubblicato | Note della release | |
---|---|---|---|
1.0.0.0 |