Hello Guys ,I need a help please solve my problem.

조회 수: 1 (최근 30일)
Priya
Priya 2022년 9월 28일
편집: Adam Danz 2022년 9월 28일
Error while evaluating UIControl Callback. and Index exceeds the number of array elements. Index must not exceed 0.
  댓글 수: 1
John D'Errico
John D'Errico 2022년 9월 28일
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!

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

답변 (1개)

Adam Danz
Adam Danz 2022년 9월 28일
편집: Adam Danz 2022년 9월 28일
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
Index exceeds the number of array elements. Index must not exceed 0.
See also

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by