Main Content

sim2nndata

Convert Simulink time series to neural network data

Syntax

sim2nndata(x)

Description

sim2nndata(x) takes either a column vector of values or a Simulink® time series structure and converts it to a neural network data time series.

Examples

Here a random Simulink 20-step time series is created and converted.

simts = rands(20,1);
nnts = sim2nndata(simts)

Here a similar time series is defined with a Simulink structure and converted.

simts.time = 0:19
simts.signals.values = rands(20,1);
simts.dimensions = 1;
nnts = sim2nndata(simts)

Version History

Introduced in R2010b

See Also

|