Index exceeds matrix dimensions.

조회 수: 1 (최근 30일)
vasantha malairamar
vasantha malairamar 2017년 3월 6일
댓글: vasantha malairamar 2017년 3월 7일
for j=1:96 %Display the 3color channel
for k=1:96
mR=re(j,k,1);
mG=re(j,k,2);
mB=re(j,k,3);
d=[mR mG mB];
disp('d value is');
disp(d);

채택된 답변

KSSV
KSSV 2017년 3월 6일
[m,n,p] = size(re) ;
for j=1:m %Display the 3color channel
for k=1:n
mR=re(j,k,1);
mG=re(j,k,2);
mB=re(j,k,3);
d=[mR mG mB];
disp('d value is');
disp(d);
end
end
  댓글 수: 7
KSSV
KSSV 2017년 3월 7일
Give dimensions..
vasantha malairamar
vasantha malairamar 2017년 3월 7일
768*768 image divided into 8*8 block

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by