Filter löschen
Filter löschen

Index exceeds matrix dimensions.

1 Ansicht (letzte 30 Tage)
vasantha malairamar
vasantha malairamar am 6 Mär. 2017
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);

Akzeptierte Antwort

KSSV
KSSV am 6 Mär. 2017
[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 Kommentare
KSSV
KSSV am 7 Mär. 2017
Give dimensions..
vasantha malairamar
vasantha malairamar am 7 Mär. 2017
768*768 image divided into 8*8 block

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Resizing and Reshaping Matrices finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by