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!