Filter löschen
Filter löschen

Error for the array bounds

1 Ansicht (letzte 30 Tage)
Waqas Siddique
Waqas Siddique am 5 Okt. 2020
Kommentiert: Adam Danz am 5 Okt. 2020
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 Kommentare
Rik
Rik am 5 Okt. 2020
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 am 5 Okt. 2020
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.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Images finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by