COLUMNS
Rows A B C
1 11 22 33
2 44 55 66
3 66 77 88
4 99 100 110
5 111 122 133
I have a matrix of 3 columns (A,B,C) by 5 rows (1-5).
I need loops to acquire all the possible combinations possible
The combination elements must cascade from the first row to the lower rows with ONLY one element from each row
Rules
a) Every set of combination has a max of 5 elements
a) All the combinations begins at the first row (A1 or B1 or C1) AND combines with lower elements in a belt like manner from the Top to the bottom row
c) In a set you cannot pick more than one element from the same row
Examples
right
A1,A2,A3,A4,A5
B1,A2,A3,A4,A5
C1,A2,A3,A4,A5
C1,A2,A3,A4,A5
B1,B2,A3,A4,A5
WRONG
C1,A2,B2,A4,A5 (A2 AND B2 have the same row number)
C1,A2,B2,A4,A5 (A2 & B2 have the same row number)
A3,B2,A3,B1,A5 (The first element in the set should start from the first row which is A1/B1/C1)
C5,A1,A2,A3,A4 ( the first element IN a set must be A1/B1/C1)