Index exceeds array bounds

4 次查看(过去 30 天)
I've been trying to implement the following piece of code (function)...
1563884661(1).png
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 个评论
Pierre Guy
Pierre Guy 2019-7-23
Thank you for your feedback. Actually, XTest does embody a set of data (it does exist).
Adam
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.

请先登录,再进行评论。

采纳的回答

Catalytic
Catalytic 2019-7-23
编辑:Catalytic 2019-7-23

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Matrix Indexing 的更多信息

产品


版本

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by