Undefined function or variable 'sequenceInputLayer' when following Matlab Example with all extensions installed
Mostra commenti meno recenti
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 Commenti
Geoff Hayes
il 22 Giu 2018
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
il 25 Giu 2018
Risposta accettata
Più risposte (1)
Husnain Iqbal
il 27 Gen 2019
0 voti
James Cameron, kindly guide me about the solution. I've same issue i.e. Undefined function or variable 'sequenceInputLayer'.
2 Commenti
Steven Lord
il 28 Gen 2019
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.
Husnain Iqbal
il 28 Gen 2019
OK, Thanks for the comment
Categorie
Scopri di più su Install Products in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!