Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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)

See Also

|

Introduced in R2010b

Was this topic helpful?