MATLAB Answers

Index exceeds array bounds

조회 수: 1(최근 30일)
Pierre Guy
Pierre Guy 2019년 7월 23일
편집: Catalytic 2019년 7월 23일
I've been trying to implement the following piece of code (function)...
but, I get this message in the command window:
Error in LSTMTest>prepareDataTest (line 212)
X = XTest{i};
I looked at similar cases in the forum, but still...
Please how can I solved this issue?
Thank you for your time!
Best regards,
  댓글 수: 3
Adam 2019년 7월 23일
Use the debugger and the Pause on errors option. It will land you in the code at the exact location and index within the for loop that the error occurs. Then it will be trivial to see in the workspace and/or using command line what the problem is.

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

추가 답변(0개)




Community Treasure Hunt

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

Start Hunting!

Translated by