필터 지우기
필터 지우기

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

조회 수: 4 (최근 30일)
Ahmed
Ahmed 2012년 5월 31일
답변: Hossein 2016년 6월 10일
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,

채택된 답변

Walter Roberson
Walter Roberson 2012년 5월 31일
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
Ahmed
Ahmed 2012년 5월 31일
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.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Hossein
Hossein 2016년 6월 10일
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).

카테고리

Help CenterFile Exchange에서 Solver Outputs and Iterative Display에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by