how get it?

조회 수: 16 (최근 30일)
huda nawaf
huda nawaf 2011년 9월 18일
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

답변 (2개)

bym
bym 2011년 9월 18일
combnk('abcdefgh',3)
  댓글 수: 2
huda nawaf
huda nawaf 2011년 9월 18일
thank you very much
bym
bym 2011년 9월 18일
Andrei's answer works the same; please accept one

댓글을 달려면 로그인하십시오.


Andrei Bobrov
Andrei Bobrov 2011년 9월 18일
  댓글 수: 1
Fangjun Jiang
Fangjun Jiang 2011년 9월 18일
Remember to assign x as x='abcdefgh'

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by