How to find real and complex roots for a nonlinear equation
조회 수: 4 (최근 30일)
이전 댓글 표시
Hi everyone,
I have to solve this eqution numerically:

the only variable is H and it tipically gives two complex roots and one real root, I've read that fzero is not suitable in this case, could anyone give mi any tips please?
Thank you
댓글 수: 0
답변 (1개)
Viranch Patel
2021년 9월 22일
For simplicity I have taken a simple function which has complex roots.
syms H
eq=H^2 + 1;
solve(eq==0,H)
You can specify your equation in H like this and this should give you the roots correctly.
참고 항목
카테고리
Help Center 및 File Exchange에서 Systems of Nonlinear Equations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!