gettimesteps
(To be removed) Get neural network data timesteps
gettimesteps will be removed in a future release. For more information,
see Transition Legacy Neural Network Code to dlnetwork Workflows.
For advice on updating your code, see Version History.
Syntax
gettimesteps(x,ind)
Description
gettimesteps(x,ind) returns the timesteps of neural network data
x indicated by the indices ind. The neural
network data may be in matrix or cell array form.
If x is a matrix, ind can only be 1, which will
return x; or [], which will return an empty
matrix.
If x is a cell array, then the result is the columns of
x with indices specified by ind.
Examples
This code gets timestep 2 from cell array data:
x = {[1:3; 4:6] [7:9; 10:12]; [13:15] [16:18]}
y = gettimesteps(x,2)
Version History
Introduced in R2010bSee Also
Time Series
Modeler | fitrnet (Statistics and Machine Learning Toolbox) | fitcnet (Statistics and Machine Learning Toolbox) | trainnet | trainingOptions | dlnetwork