Hello Gurus,
I need to do the following and was wondering if any of you knew an efficient way to do so.
I have 'n' matrices, each with different row size ('k_n') but same
number of columns (3). I need to get a matrix (p) with all possible combination of the rows.
Just to elaborate, I did the following by brute force;
>> n1
n1 =
7 0 1
>> n2
n2 =
2 0 1
2 0 2
>> n3
n3 =
3 0 1
3 0 2
3 0 3
3 0 4
p =
7 0 1 2 0 1 3 0 1
7 0 1 2 0 1 3 0 2
7 0 1 2 0 1 3 0 3
7 0 1 2 0 1 3 0 4
7 0 1 2 0 2 3 0 1
7 0 1 2 0 2 3 0 2
7 0 1 2 0 2 3 0 3
7 0 1 2 0 2 3 0 4
I highly appreciate your help. Thank you very much.
Please log in to reply to this post
You can also log in using your Facebook
What people are reading
You might like these other discussions...
· Posts 19
· Viewed 7003
· Likes 2