how to write matlab code for following equation
Show older comments

3 Comments
Adam
on 31 Jul 2015
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
on 31 Jul 2015
Edited: Manolis Michailidis
on 31 Jul 2015
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
on 18 Aug 2015
Accepted Answer
More Answers (0)
Categories
Find more on Genetic Algorithm in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!