Borrar filtros
Borrar filtros

Is there a way to solve complex-valued non-linear equations?

4 visualizaciones (últimos 30 días)
Ahmed
Ahmed el 31 de Mayo de 2012
Respondida: Hossein el 10 de Jun. de 2016
Hi guys,
I'm trying to solve a set of complex-valued non-linear equations, but I found that "fsolve" solves only real-valued equations. Is there another function that solves comlpex-valued equations? Or is there any way around it?
Thanks,

Respuesta aceptada

Walter Roberson
Walter Roberson el 31 de Mayo de 2012
You can use fsolve. Split each complex-valued output into two outputs, the real() and imag().
You can do the same sort of thing for each complex-valued input.
  1 comentario
Ahmed
Ahmed el 31 de Mayo de 2012
Thank you. I tried it but the problem now is that the solver "stopped prematurely" as it exceeded either MaxFunEvals or MaxIter. I increased them to 1e5 and 1e4 respectively, but still the same error occurs.

Iniciar sesión para comentar.

Más respuestas (1)

Hossein
Hossein el 10 de Jun. de 2016
fsolve in some cases cannot solve the equation. try fzero, fminsearch and fminunc as well. Hopefully, fzero helps you (this function may affect better than others).

Categorías

Más información sobre Solver Outputs and Iterative Display en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by