Combinations, n choose k

This function finds the combinations of n choose k.

Vous suivez désormais cette soumission

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

Citation pour cette source

Bruce Raine (2026). Combinations, n choose k (https://fr.mathworks.com/matlabcentral/fileexchange/32626-combinations-n-choose-k), MATLAB Central File Exchange. Extrait(e) le .

Informations générales

Compatibilité avec les versions de MATLAB

  • Compatible avec toutes les versions

Plateformes compatibles

  • Windows
  • macOS
  • Linux
Version Publié le Notes de version Action
1.0.0.0