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개)

Wayne King
Wayne King 2012년 5월 26일

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