フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

index exceeds matrix dim

1 回表示 (過去 30 日間)
sadiqa ilyas
sadiqa ilyas 2019 年 8 月 2 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I am working on 3d image encryption using 8 cross8 matrix. where image size is 256 256*3. portion of the code is attached. Can some one explain why i m gettting index excedes matrix dim
I1=imread('Hello.png')
h=size(I1);
:
:
EncImg2=zeros(h);
for z=1:7
for i=1:h(1)
for j=1:8:h(2)
P=double(EncImg(i,j:j+7,z));
EncImg2(i,j:j+7,z)=mod((Km*P')',256);
end
end
I am constantly getting 'index exceeds matrix dim ' at P. Can anyone explains whats wrong with this line and what to do

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by