Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

con2seq

Convert concurrent vectors to sequential vectors

Syntax

S = con2seq(b)
S = con2seq(b,TS)

Description

Neural Network Toolbox™ software arranges concurrent vectors with a matrix, and sequential vectors with a cell array (where the second index is the time step).

con2seq and seq2con allow concurrent vectors to be converted to sequential vectors, and back again.

S = con2seq(b) takes one input,

b

R-by-TS matrix

and returns one output,

S

1-by-TS cell array of R-by-1 vectors

S = con2seq(b,TS) can also convert multiple batches,

b

N-by-1 cell array of matrices with M*TS columns

TS

Time steps

and returns

S

N-by-TS cell array of matrices with M columns

Examples

Here a batch of three values is converted to a sequence.

p1 = [1 4 2]
p2 = con2seq(p1)

Here, two batches of vectors are converted to two sequences with two time steps.

p1 = {[1 3 4 5; 1 1 7 4]; [7 3 4 4; 6 9 4 1]}
p2 = con2seq(p1,2)

See Also

|

Introduced before R2006a

Was this topic helpful?