To preform combinations in matlab use the "nchoosek" function. For example nchoosek(10,3) = n!/(n-k)!k! =10!/(7!*3!) = 120
To calculate the CDF of a Binomial you can use the "binocdf" function. For example binocdf(6,10,.5) returns the probability of a cdf with 6 successes, 10 trials, and a probability of .5.