How can I create a script that calculates this combinatorial?
조회 수: 1 (최근 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?
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!