필터 지우기
필터 지우기

Undefined function or variable 'sequenceInputLayer' when following Matlab Example with all extensions installed

조회 수: 5 (최근 30일)
I'm trying to follow the Time Series Forecasting Using Deep Learning example from the Neural Network Toolbox.
I'm fairly certain that I have the correct packages installed. Image of my add-ons manager is below:
Following the example line for line, I get stock on the following command:
layers = [ ...
sequenceInputLayer(inputSize)
lstmLayer(numHiddenUnits)
fullyConnectedLayer(numResponses)
regressionLayer];
Matlab produces the following error:
Undefined function or variable 'sequenceInputLayer'.
Error in ForecastModel (line 27)
sequenceInputLayer(inputSize)
I cannot figure out why the function does not work as it is part of the installed Neural Network Toolbox. Do I need to do anything special to activate this toolbox within the current project or is there any other advice on how to get past this error?
  댓글 수: 2
Geoff Hayes
Geoff Hayes 2018년 6월 22일
James - which version of MATLAB are you using? According to sequenceInputLayer this function was introduced in r2017b. If your version is older than this, then this function will not exist.
James Cameron
James Cameron 2018년 6월 25일
Thank you for the answer, Geoff. I'm using an education license of R2016B supplied by my University so that will be the reason.

댓글을 달려면 로그인하십시오.

채택된 답변

Siwan Yang
Siwan Yang 2018년 6월 22일
Hello James,
As Geoff mentioned, the ‘sequenceInputLayer’ function is introduced since R2017b, so if you could upgrade to MATLAB R2017b or above version, this issue no longer exists.
Thanks, Siwan
  댓글 수: 1
James Cameron
James Cameron 2018년 6월 25일
Thanks Siwan, yes this will be the issue. I'm using a R2016B license supplied by my University so I'm not sure if I can upgrade.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Husnain Iqbal
Husnain Iqbal 2019년 1월 27일
James Cameron, kindly guide me about the solution. I've same issue i.e. Undefined function or variable 'sequenceInputLayer'.
  댓글 수: 2
Steven Lord
Steven Lord 2019년 1월 28일
As Siwan Yang said, this function was introduced in release R2017b. If you're using a release that's older than that, you will not be able to use this function.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

제품


릴리스

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by