Hi
I have created a M x N matrix from which I want to create all elements resulting from
i.e. if I have A = [ 11 12 13 14; 21 22 23 24; 31 32 33 34], I want to create:
[11; 21; 31] [11; 21; 32] [11; 21; 33] [11; 21; 34 ] [12; 21; 31] [12; 21; 32] [12; 21; 33] [12; 21; 34 ] …
I found
```B = collect(combinations(A, 4)) ````
but that is generating all permutations not only picking an element per row.
Any idea ?
Thanks