Main Content
cattimesteps
Concatenate neural network data timesteps
Syntax
cattimesteps(x1,x2,...,xn)
{x1
x2 ... xn}
Description
cattimesteps(x1,x2,...,xn)
takes any number of neural network data
values, and merges them along the element dimension (i.e., the cell column dimension).
If all arguments are matrices, this operation is the same as
{x1
x2 ... xn}
.
If any argument is a cell array, all non-cell array arguments are enclosed in cell arrays,
and the cell arrays are concatenated as [x1 x2 ... xn]
.
Examples
This code concatenates the elements of two matrix data values.
x1 = [1 2 3; 4 7 4] x2 = [5 8 2; 4 7 6] y = cattimesteps(x1,x2)
This code concatenates the elements of two cell array data values.
x1 = {[1:3; 4:6] [7:9; 10:12]; [13:15] [16:18]} x2 = {[2 1 3; 5 4 1] [4 5 6; 9 4 8]; [2 5 4] [9 7 5]} y = cattimesteps(x1,x2)
Version History
Introduced in R2010b
See Also
nndata
| numtimesteps
| gettimesteps
| settimesteps
| catelements
| catsignals
| catsamples