MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [求助]:程序出错 (https://www.labfans.com/bbs/showthread.php?t=5696)

ykn1103 2008-12-08 19:18

[求助]:程序出错
 
for i=1:252
for j=1:247
for h=1:329
if(L(i,j)==e(329,1))
L(i,j)=1;
else
L(i,j)=0;
end
end
end
end
imshow(L);
为什么出来是黑屏呢?e为329行1列的矩阵。如果矩阵L中与e中的任何一个数相等的话就变为1.

anbcjys 2008-12-09 08:21

回复: [求助]:程序出错
 
if(L(i,j)==e(h,1))

ykn1103 2008-12-11 19:32

回复: [求助]:程序出错
 
那句错了吗?


所有时间均为北京时间。现在的时间是 13:36

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.