how get it?

3 vues (au cours des 30 derniers jours)
huda nawaf
huda nawaf le 18 Sep 2011
hi, I got combination by: n! n_C_k = ---------- k!(n - k)!
8_C_3=56 for ex.:x=abcdefgh can I get 56 combination of x? i.e how get? abc abd abe . . . thanks in advance

Réponses (2)

bym
bym le 18 Sep 2011
combnk('abcdefgh',3)
  2 commentaires
huda nawaf
huda nawaf le 18 Sep 2011
thank you very much
bym
bym le 18 Sep 2011
Andrei's answer works the same; please accept one

Connectez-vous pour commenter.


Andrei Bobrov
Andrei Bobrov le 18 Sep 2011
  1 commentaire
Fangjun Jiang
Fangjun Jiang le 18 Sep 2011
Remember to assign x as x='abcdefgh'

Connectez-vous pour commenter.

Catégories

En savoir plus sur MATLAB dans Help Center et File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by