Undefined function or variable 'prepareDataTrain'

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'

 채택된 답변

Jose Matías
Jose Matías 2018년 5월 17일

0 개 추천

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

댓글 수: 4

Ops, didn't see that, thank you!
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.

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

추가 답변 (1개)

Muhammad Mohsin Khan
Muhammad Mohsin Khan 2019년 3월 18일

0 개 추천

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

카테고리

도움말 센터File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by