How can I create a script that calculates this combinatorial?
1 回表示 (過去 30 日間)
古いコメントを表示

0 件のコメント
回答 (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!