How can I create a script that calculates this combinatorial?
이전 댓글 표시
답변 (1개)
Vladimir Sovkov
2020년 8월 23일
C=nchoosek(n,r)
댓글 수: 2
Carlos Siles Rivero
2020년 8월 23일
Vladimir Sovkov
2020년 8월 24일
Here you compute
but not the binomial coefficient
. Is this what you really want? Otherwise, what stops you from using the inbuilt function nchoosek, which is much more efficient than any loop construction can be?
but not the binomial coefficient 카테고리
도움말 센터 및 File Exchange에서 MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

