Example. I want to populate a 15-column matrix with values ββof 0.25,0,25,0,25,0,25,0,0,0 ..... (11 columns with zeros) so that all possible combinations of columns are filled. In this example, I use 4 columns with 0.25 and the other 11 col with 0.
The result should look like this: -
0.25 0.25 0.25 0.25 0.00 0.00 0.00 0.00 .......
0.25 0.25 0.25 0.00 0.25 0.00 0.00 0.00 .......
0.25 0.25 0.25 0.00 0.00 0.25 0.00 0.00 .......
. . . . . . . . .......
. . . . . . . . .......
0.25 0.25 0.00 0.25 0.25 0.00 0.00 0.00 .......
0.25 0.25 0.00 0.25 0.00 0.25 0.00 0.00 ....... etc, etc.
When using "perms" (limited to 10 elements), it processes each "0" as if they were unique, so I get a few lines that are the same. The "unique" function works fine if it is less than 10, but I need to use more. Appreciate any help, thanks
source
share