Choice1 Choice2 Choice3
A 1 5 9
B 2 6 10
C 3 7 11
D 4 8 12
How can i generate all possible combinations that include one choice for each row in matlab
Choice1 Choice2 Choice3
A 1 5 9
B 2 6 10
C 3 7 11
D 4 8 12
How can i generate all possible combinations that include one choice for each row in matlab
Thank you klancar16!
So let's say
A = [1, 5, 9]
B = [2, 6,10]
C = [3, 7,11]
D = [4, 8,12]
temp = combvec(A,B)
temp = combvec(temp,C)
final = combvec(temp,D)
and "final" contains a row for each possible choice!