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

回答(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

类别

帮助中心File Exchange 中查找有关 Deep Learning Toolbox 的更多信息

提问:

2012-5-26

Community Treasure Hunt

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

Start Hunting!

Translated by