how get it?

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

Antworten (2)

bym
bym am 18 Sep. 2011

0 Stimmen

combnk('abcdefgh',3)

2 Kommentare

huda nawaf
huda nawaf am 18 Sep. 2011
thank you very much
bym
bym am 18 Sep. 2011
Andrei's answer works the same; please accept one

Melden Sie sich an, um zu kommentieren.

Andrei Bobrov
Andrei Bobrov am 18 Sep. 2011

0 Stimmen

nchoosek(x,3)

1 Kommentar

Fangjun Jiang
Fangjun Jiang am 18 Sep. 2011
Remember to assign x as x='abcdefgh'

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu MATLAB finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 18 Sep. 2011

Community Treasure Hunt

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

Start Hunting!

Translated by