how get it?

3 visualizaciones (últimos 30 días)
huda nawaf
huda nawaf el 18 de Sept. de 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

Respuestas (2)

bym
bym el 18 de Sept. de 2011
combnk('abcdefgh',3)
  2 comentarios
huda nawaf
huda nawaf el 18 de Sept. de 2011
thank you very much
bym
bym el 18 de Sept. de 2011
Andrei's answer works the same; please accept one

Iniciar sesión para comentar.


Andrei Bobrov
Andrei Bobrov el 18 de Sept. de 2011
nchoosek(x,3)
  1 comentario
Fangjun Jiang
Fangjun Jiang el 18 de Sept. de 2011
Remember to assign x as x='abcdefgh'

Iniciar sesión para comentar.

Categorías

Más información sobre MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by