查看单个帖子
旧 2008-03-31, 16:26   #1
zhuchuanwei
初级会员
 
注册日期: 2008-03-31
年龄: 41
帖子: 3
声望力: 0
zhuchuanwei 正向着好的方向发展
默认 【求助】help me!

斑竹或者高人能给解决一下不


程序部分:
for i=1:M
for j=1:N
if err_sum(i,j)>=err_threshold%err_threshold
temp1=err_sum(i-2:i+2,j-2:j+2);
[minValue,minIndex]=min(temp1();
[m,n]=ind2sub([5 5],minIndex);
u=3-m;
v=3-n;
temp2=Z(i-u-2:i-u+2,j-v-2:j-v+2);%出现问题
问题部分:
??? Subscript indices must either be real positive integers or logicals.

Error in ==> compute_HKz_GOOD at 70
temp2=Z(i-u-2:i-u+2,j-v-2:j-v+2);%出现问题
zhuchuanwei 当前离线   回复时引用此帖