MATLAB Answers

0

Undefined function or variable 'prepareDataTrain'

Asked by Francesco Bosso on 27 Apr 2018
Latest activity Answered by Muhammad Mohsin Khan on 18 Mar 2019 at 5:40
Hi, I'm using Matlab 2018a on Ubuntu 17.10 (x64) and I'm following this example to make an LSTM with regression https://it.mathworks.com/help/nnet/examples/sequence-to-sequence-regression-using-deep-learning.html But when I call the method prepareDataTrain, I have this error:
Undefined function or variable 'prepareDataTrain'

  0 Comments

Sign in to comment.

2 Answers

Answer by Jose Matías on 17 May 2018
 Accepted Answer

The function source is at the end of the document under the section Example Functions.

  4 Comments

Show 1 older comment
Did you get your problem resolved ? How to use the function source which is at the end of the document ? I am also getting the same error as yours. Thanks
Hi,
Copy the source into a m-script and save it in the curren folder with the name of the function (e.g. prepareDataTrain.m).
Regards,
When you visit https://www.mathworks.com/help/deeplearning/examples/sequence-to-sequence-regression-using-deep-learning.html then near the upper right there is a place to click to "Try it in MATLAB". Clicking that will give you a command you can copy to run the code. It will copy the appropriate files for you.

Sign in to comment.


Answer by Muhammad Mohsin Khan on 18 Mar 2019 at 5:40

Thank You so much for your replies. Its working now.

  0 Comments

Sign in to comment.