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
2012년 5월 26일
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에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!