Questa domanda è chiusa. Riaprila per modificarla o per rispondere.
generate Matrix using Combination
1 visualizzazione (ultimi 30 giorni)
I wanted to know how to gnerate a binary matrix using combination number of rows and columns
Suppose I want to generate a matrix of 16 columns and 6 rows and wanted to maintain number of 1's in each column to be 3. Then I want to generate a code which must be using combination of 6(number of rows) and 3(number of 1's in each column). So answer is 20 combinations, in that I want to use only 16 combinations as I am having only 16 columns.
Can any one help me.