주요 콘텐츠

sim2nndata

(To be removed) Convert Simulink time series to neural network data

sim2nndata 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

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