function y = comb(n,k) % COMB y = comb(n,k) Binomial coefficients % Version of 12/10/92 % Computes binomial coefficients C(n,k) % k may be a matrix of integers between 0 and n % result y is a matrix of the same dimensions y = round(gamma(n+1)./(gamma(k + 1).*gamma(n + 1 - k)));