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
답변 (2개)
bym
2011년 9월 18일
combnk('abcdefgh',3)
Andrei Bobrov
2011년 9월 18일
nchoosek(x,3)
댓글 수: 1
Fangjun Jiang
2011년 9월 18일
Remember to assign x as x='abcdefgh'
카테고리
도움말 센터 및 File Exchange에서 MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!