How can I create a script that calculates this combinatorial?
조회 수: 6 (최근 30일)
이전 댓글 표시
답변 (1개)
Vladimir Sovkov
2020년 8월 23일
C=nchoosek(n,r)
댓글 수: 2
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 참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

