powered by
Create a choose(n,m) by n matrix. The matrix has unique rows with m ones in each row and the rest zeros.
choose(n,m)
chooseMatrix(n, m)
A matrix with choose(n,m) rows n columns. The matrix has unique rows with m ones in each row and the rest zeros.
an integer
an integer<=n
M.P.Fay
chooseMatrix(5,2)
Run the code above in your browser using DataLab