| Neural Network Toolbox | Search  Help Desk |
| combvec | Examples |
Create all combinations of vectors
combvec(a1,a2)combvec
(A1,A2) takes two inputs,
and returns a matrix of N1*N2 column vectors, where the columns consist of all possibilities of A2 vectors, appended to A1 vectors.
a1 = [1 2 3; 4 5 6]; a2 = [7 8; 9 10]; a3 = combvec(a1,a2)