how to write matlab code for following equation
이전 댓글 표시

댓글 수: 3
Adam
2015년 7월 31일
If you have the optimisation toolbox you can search in there for Genetic Algorithm functionality. If you don't you will either have to program the algorithm yourself or search in the Matlab File Exchange which is linked at the top of this web page.
Manolis Michailidis
2015년 7월 31일
편집: Manolis Michailidis
2015년 7월 31일
what is GA? also when it's asking to minimize my mind goes to optimization , anyway i will post below some code so you can see if that's gonna help you in someway.
minor_lobe_range=10; %you can specify your parameter
n=15; %specify your n range limit
b=100; %specify your b parameter
for theta=1:minor_lobe_range
for k=1:n-1
fit1(theta)=abs(1+sum(a(k)*exp(-1i*(b*d(k)*cos(theta)+f(k)))));
end
end
Ma
2015년 8월 18일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Genetic Algorithm에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!