Neural Network Toolbox | Search  Help Desk |
seq2con | Examples See Also |
Converts sequential vectors to concurrent vectors
b = seq2con(s)
The neural network toolbox represents batches of vectors with a matrix, and sequences of vectors with multiple columns of a cell array.
seq2con
and con2seq
allow concurrent vectors to be converted to sequential vectors, and back again.
seq2con(S)
takes one input,
S - N
x TS
cell array of matrices with M
columns.
B - N
x 1
cell array of matrices with M*TS
columns.
p1 = {1 4 2} p2 = seq2con(p1)Here two sequences of vectors over three time steps are converted to concurrent vectors.
p1 = {[1; 1] [5; 4] [1; 2]; [3; 9] [4; 1] [9; 8]} p2 = seq2con(p1)
con2seq
,
concur