Hello Guys ,I need a help please solve my problem.
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Error while evaluating UIControl Callback. and Index exceeds the number of array elements. Index must not exceed 0.
1 commentaire
John D'Errico
le 28 Sep 2022
Learn to use the debugger.
Do you want better help? Then learn to ask a question in a way that can be answered. That is, you will need to show the code that produced the error, and do so in a way that will allow someone else to test that code. Else, anyone will be forced to make wild guesses as to what you may have done wrong.
Far easier? LEARN TO USE THE DEBUGGER!
Réponses (1)
Adam Danz
le 28 Sep 2022
Modifié(e) : Adam Danz
le 28 Sep 2022
Apparently you're indexing an empty array containing 0 elements but you're asking for a value at a non-zero index. That's about as deep as we can go given the information available.
Recreation of the problem:
a = [ ]; % empty, no element
a(1) % ask for the first element
See also
- Documentation: Debug MATLAB Code Files
- Blog article: Useful Debugging Commands and Tips
- Tips on How to ask a question in this forum
0 commentaires
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!