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?


另请参阅
类别
在 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!