So I have a set of 12 row vectors (of length 500) containing different parameters about a dataset.
I need to run a function on matrices containing all possible combinations of these vectors, which there are 4095 of (not including an empty matrix).
Is there to loop through all these matrices?
For example, if I had 3 vectors A,B,and C I would want the following 7 matrices:
[A], [A; B], [A; B; C], [B; C], [B], [B; C], [C]
Best Answer