You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

5 lines
107 B

6 years ago
function fit=fitness(x)
%求最大的,若是求最小则可以求倒
fit=(x+10*sin(5*x)+7*cos(4*x));
end