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

Respuestas (1)

Wayne King
Wayne King el 26 de Mayo de 2012

1 voto

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

Categorías

Más información sobre Deep Learning Toolbox en Centro de ayuda y File Exchange.

Preguntada:

el 26 de Mayo de 2012

Community Treasure Hunt

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

Start Hunting!

Translated by