Index exceeds the number of array elements (0).
5 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Cris LaPierre
2022-6-25
You are trying to index a variable that has no elements.
a = []
a(1)
2 个评论
Cris LaPierre
2022-6-30
Could be. It may be because no edges were found in your image, so g is empty.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!