Combinations, n choose k
Versión 1.0.0.0 (1,26 KB) por
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
Citar como
Bruce Raine (2024). Combinations, n choose k (https://www.mathworks.com/matlabcentral/fileexchange/32626-combinations-n-choose-k), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Se creó con
R2011a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
- MATLAB > Mathematics > Elementary Math >
- MATLAB > Mathematics > Elementary Math > Discrete Math >
Más información sobre Elementary Math en Help Center y MATLAB Answers.
Etiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
Versión | Publicado | Notas de la versión | |
---|---|---|---|
1.0.0.0 |