zhuchuanwei
2008-03-31, 16:26
斑竹或者高人能给解决一下不
程序部分:
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);%出现问题
程序部分:
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);%出现问题