Clear Filters
Clear Filters

How can I create a script that calculates this combinatorial?

3 views (last 30 days)

Answers (1)

Vladimir Sovkov
Vladimir Sovkov on 23 Aug 2020
Vladimir Sovkov
Vladimir Sovkov on 24 Aug 2020
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?

Sign in to comment.


Find more on Programming in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!