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!