Main Content

nndata2sim

Convert neural network data to Simulink time series

Syntax

nndata2sim(x,i,q)

Description

nndata2sim(x,i,q) takes these arguments,

x

Neural network data

i

Index of signal (default = 1)

q

Index of sample (default = 1)

and returns time series q of signal i as a Simulink® time series structure.

Examples

Here random neural network data is created with two signals having 4 and 3 elements respectively, over 10 timesteps. Three such series are created.

x = nndata([4;3],3,10);

Now the second signal of the first series is converted to Simulink form.

y_2_1 = nndata2sim(x,2,1)

Version History

Introduced in R2010b