Code covered by the BSD License  

Highlights from
QUBIT4MATLAB V4.0

from QUBIT4MATLAB V4.0 by Geza Toth
MATLAB package for quantum information science and quantum mechanics.

c=binom(a,b)
% binom   binom(m,n) is factorial(n)/factorial(n-m)/factorial(m)

function c=binom(a,b)

c=factorial(a)/factorial(a-b)/factorial(b);


Contact us at files@mathworks.com