Detection of objects
조회 수: 5 (최근 30일)
이전 댓글 표시
Subscript indices must either be real positive integers or logicals
댓글 수: 0
채택된 답변
Sean de Wolski
2011년 2월 4일
is 0 a "real positive integer"?
Unlike other languages, MATLAB begins indexing at 1. e.g.
x(0) => your_error
x(1) => indexes first element
추가 답변 (1개)
Vieniava
2011년 2월 4일
in Matlab vector/matrix indexing starts from 1, not from 0, so you should change for-loop starting value on 1 .
참고 항목
카테고리
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!