饿死抬头 function F = myfun(x,xdata) Area = 481; xlsFile = 'test.xls'; R = xlsread(xlsFile,1,'B2:B88'); for jj = 1:length(xdata); A = 1; for kk = jj:-1:1 qn(1,A) = (R(A,1)/x)*exp(-xdata(kk,1)/x)*Area*10^4/3600; A = A+1; end end F = sum(qn,2); %模拟值 end 以上是小弟的方程式