필터 지우기
필터 지우기

Error for the array bounds

조회 수: 1 (최근 30일)
Waqas Siddique
Waqas Siddique 2020년 10월 5일
댓글: Adam Danz 2020년 10월 5일
I am writing a code to count occurences of successive numbers. Variable r gives the count of the occurences but I am getting an error that the logical indices contain a true value outside the bounds of the array
  댓글 수: 4
Rik
Rik 2020년 10월 5일
Try to write code that will create a tab that triggers the error. You can use rng to make sure the random seed is the same every time the code runs. The only other option is to attach your tab variable in a mat file.
Adam Danz
Adam Danz 2020년 10월 5일
The error is likely due to 1 or more NaN values in the tab vector.
It doesn't make sense to have two different threads on the same topic so I replied in more detail in your original thread. This thread is a duplicate and should probably be closed.

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

답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by