find the maximum of a function when wariables, when matrixes are also involed function.
Información
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
Mostrar comentarios más antiguos
I want to find values of the variables v1,v2 and v3 at which function value is maximum.
F = Em.*exp(1i*ifft(fftshift(sqrt(v1)*Emmf11a+sqrt(v2)*Emmf11b.*exp(-1i*(v3*pi)))
where v1,v2 and v3 are variable for the function and Em, Emmf11a and Emmf11b are in matrix form values and complex.
for example
Em = [1+2i 2;4-1i -12+4i]
Emmf11a = [1+2i 2;4-1i -12+4i]
Emmf11b = [1+2i 2;4-1i -12+4i]
Regards Ali
Respuestas (1)
Sean de Wolski
el 23 de Mayo de 2013
I would recommend using fminsearch() or patternsearch().
doc fminsearch
doc patternsearch %Global Optimization Toolbox
3 comentarios
Liaquat Ali
el 23 de Mayo de 2013
Sean de Wolski
el 23 de Mayo de 2013
How are you calling it?
Liaquat Ali
el 4 de Jun. de 2013
Editada: Liaquat Ali
el 4 de Jun. de 2013
La pregunta está cerrada.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!