a=xlsread('合理开挖土地',2,'A1:EU91');
num = 1;
for i=1:10
for j=1:90
b{num}=a(i:i+80,j:j+60);
c=b{num}-h;
d=c;
c(c<0)=0;
d(d>0)=0
b{num}=c+1/3*d;
b_sum(num)= sum(sum(b{num}));
num = num+1;
end
end
[A1,rind]=sort(b_sum,'descend')
max((b_sum))
h想从1:44.这个应该怎么办?算出max((b_sum))。 求h的取值。这样应该怎么写呢?