Changing my image to logical or positive
조회 수: 1 (최근 30일)
이전 댓글 표시
??? Attempted to access im3(217,0); index must be a positive integer or logical.
Can anyone teach me how to change my im3 to logical?
댓글 수: 0
채택된 답변
Jan
2011년 10월 17일
You do not have to change the picture, but the index - as the error message explains. Indicies start at 1 in MATLAB, such that "im3(217, 0)" is not valid. I guess that "im3(218, 1)" solves your problem.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
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!