Index exceeds matrix dimensions.
1 次查看(过去 30 天)
显示 更早的评论
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);
0 个评论
采纳的回答
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
更多回答(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!