Dear MATA users,
Is there a routine to create a matrix containing all possible combinations of values stored in given vectors.
For example:
a = (1\0)
b = (1\0)
should result in c = (1,1\1,0\0,1\0,0)
or
a = (1\0)
b = (1\0)
c = (1\0)
should result in d = (1,1,1\0,1,1\1,0,1\1,1,0\1,0,0\0,1,0\0,0,1\0,0,0)
Best wishes
Sebastian
Is there a routine to create a matrix containing all possible combinations of values stored in given vectors.
For example:
a = (1\0)
b = (1\0)
should result in c = (1,1\1,0\0,1\0,0)
or
a = (1\0)
b = (1\0)
c = (1\0)
should result in d = (1,1,1\0,1,1\1,0,1\1,1,0\1,0,0\0,1,0\0,0,1\0,0,0)
Best wishes
Sebastian