Daniel@0: function c = choose(n,k) Daniel@0: % CHOOSE The number of ways of choosing k things from n Daniel@0: % c = choose(n,k) Daniel@0: Daniel@0: c = factorial(n)/(factorial(k) * factorial(n-k));