Error using function "gensim"

Hi,
When I try to generate Simulink block for neural network simulation (e. g. gensim(net,0.1)), I get the following error:
*??? Undefined function or variable 'st'.
Error in ==> network.gensim at 109 if (st <= 0) && (st ~= -1),*
But it works fine if I select the default sample time, i.e. gensim(net). Please advise.
Regards, Asif

Answers (1)

You have to specify a sample time of -1 or an integer greater than or equal to 1. For example:
gensim(net,'SampleTime',2)
Note that you have to use the Name-Value pair, 'SampleTime',value
Otherwise, the model uses the value in net.sampleTime

Categories

Find more on Deep Learning Toolbox in Help Center and File Exchange

Asked:

on 26 May 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!