Index exceeds array bounds
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I've been trying to implement the following piece of code (function)...
![1563884661(1).png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/230961/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 commentaires
Adam
le 23 Juil 2019
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.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Matrix Indexing dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!