Index exceeds the number of array elements (0).
5 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I keep getting this error:
Index exceeds the number of array elements (0).
Error in S5_HoughTransform (line 58)
X = [lines(i).point1(1);lines(i).point2(1)];
0 Commenti
Risposte (1)
Cris LaPierre
il 25 Giu 2022
You are trying to index a variable that has no elements.
a = []
a(1)
2 Commenti
Cris LaPierre
il 30 Giu 2022
Could be. It may be because no edges were found in your image, so g is empty.
Vedere anche
Categorie
Scopri di più su Matrix Indexing in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!