combvec

combvec(x1,x2,...,xn) returns all combinations of vectors xi.

Examples

>> combvec([1 2 3], [5 6])#

    1    2    3    1    2    3
    5    5    5    6    6    6

See also

sort | sortrows