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!

