how to write matlab code for following equation
Mostrar comentarios más antiguos

3 comentarios
Adam
el 31 de Jul. de 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
el 31 de Jul. de 2015
Editada: Manolis Michailidis
el 31 de Jul. de 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
el 18 de Ag. de 2015
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Genetic Algorithm en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!