How to find real and complex roots for a nonlinear equation
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi everyone,
I have to solve this eqution numerically:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/745724/image.png)
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 Kommentare
Antworten (1)
Viranch Patel
am 22 Sep. 2021
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.
1 Kommentar
Siehe auch
Kategorien
Mehr zu Optimization finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!