Generate Simulink block for shallow neural network simulation
This function generates a Simulink® block for a shallow neural network.
gensim does not
support deep learning networks such as convolutional or LSTM networks. For more information on
code generation for deep learning, see Deep Learning Code Generation.
gensim(net,st) creates a Simulink system containing a block that simulates neural network
gensim(net,st) takes these inputs:
Sample time (default = 1)
and creates a Simulink system containing a block that simulates neural network
with a sampling time of
net has no input or layer delays
net.numLayerDelays are both 0),
you can use –1 for
st to get a network that samples continuously.
[x,t] = simplefit_dataset; net = feedforwardnet(10); net = train(net,x,t) gensim(net)