Number of time steps in neural network data
numtimesteps(x)
numtimesteps(x)
takes neural network data x
in
matrix or cell array form, and returns the number of signals.
If x
is a matrix, the result is 1.
If x
is a cell array, the result is the number of columns in
x
.
This code calculates the number of time steps represented by matrix data:
x = [1 2 3; 4 7 4] n = numtimesteps(x)
This code calculates the number of time steps represented by cell data:
x = {[1:3; 4:6] [7:9; 10:12]; [13:15] [16:18]} n = numtimesteps(x)
cattimesteps
| gettimesteps
| nndata
| nnsize
| numelements
| numsamples
| numsignals
| settimesteps