Watch this Author's files
Nice one Matt.
There might be a small problem though. With matlab 2009 in windows and matlab 2008 in linux I can reproduce the following problem.
leaves the last row of the return matrix to zeros. It does not update it because the parameter
BC=prod(M-K+1:M) / (prod(1:K));
inside the function function CN = combs_no_rep(N,K), at the line 343 of combinator.m
results in BC=23.999999999999996 (instead of the correct value, 24)
I guess a round in that line will take care of it.
A few other combinations of numbers give no problem.