查看单个帖子
旧 2009-03-23, 14:22   #1
jiandan
初级会员
 
注册日期: 2009-03-23
年龄: 39
帖子: 6
声望力: 0
jiandan 正向着好的方向发展
默认 [求助]分析M文件中的目标函数

最近在做毕业设计,想请问一下下面代码表示的是怎样的函数,请各位大侠帮帮忙啊!!!!!!!!!
function f = shufcn(y)
for j =1:size(y,1)
f(j) =0.0;
x = y(j,;
temp1 = 0;
temp2 = 0;
x1 = x(1);
x2 = x(2);
for i =1:5
temp1 = temp1+i.*cos((i+1).*x1+i);
temp2 = temp2+i.*cos((i+1).*x2+i);
end
f(j) =temp1.*temp2;
end
jiandan 当前离线   回复时引用此帖