i am executing the code below and getting the error"Index exceeds matrix dimensions. Error in principale_peppers (line 7) g=X(:,:,2)/255" can anyone help.
조회 수: 1 (최근 30일)
이전 댓글 표시
X=imread('d:\images\peppers.bmp'); X=double(X); [l1,l2,l3]=size(X);
r=X(:,:,1)/255; g=X(:,:,2)/255; b=X(:,:,3)/255;
댓글 수: 0
채택된 답변
Luuk van Oosten
2015년 3월 2일
Have a look here at the answer, or any other previous answered questions regarding 'index exceeds matrix dimensions' problems around this forum.
You are trying to access a value in your matrix that does not exists.
댓글 수: 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!