How can I create a script that calculates this combinatorial?

1 次查看(过去 30 天)

回答(1 个)

Vladimir Sovkov
Vladimir Sovkov 2020-8-23
C=nchoosek(n,r)
  2 个评论
Vladimir Sovkov
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 CenterFile Exchange 中查找有关 Programming 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by