I have a problem with certain issue. So, I have a three sets with four elements, e.g.:
[r11, r12, r13, r14]
[r21, r22, r23, r24]
[r31, r32, r33, r34]
I need all combination between these elements. But always each of this elements in particular sets must be in the same place:
1. r11 r21 r31
2. r11 r21 r32
.
.
.
n. r14 r24 r34
How can I do that in Matlab or Mathcad?
Assuming sets
S1
,S2
,S3
whereS1
is your[r11, r12, r13, r14]
:For example input:
results in: