comb(m, n)
comb
builds the matrix with all combinations of m zeros and n ones. The output matrix will hence have as number of columns $nc=m+n$ and as number of rows $nr = (m + n)! / (m!n!)$, which is the number of all the possible combinations. Each row will contain one of the $nr$ possible combinations of m zeros and n ones.