Solving complex non-polynomial system of equations
Show older comments
Hello,
I am trying this system of equations:

I want to solve for R, L, G and C with Omega as a constant.
Below I have included example code showing the method I used (only 1 equation here for simplicity):
eqn1 = real(a+1j*b+c) == real(10+1j);
eqn2 = imag(a+1j*b+c) == imag(10+1j);
eqns = [eqn1, eqn2];
vars = [a, b];
sol1 = vpasolve(eqns,vars);
disp(sol1.a)
disp(sol1.b)
However I get the following error message: "Symbolic parameters are not allowed in nonpolynomial equations." Seems like this is not the way to do it, how should I go about solving my system of equations?
Thanks in advance.
2 Comments
Roger Stafford
on 29 Feb 2016
Assuming the unknowns R, L, G, and C are real, there are four equations and four unknowns, the four equations being the real and imaginary parts of the two equations displayed.
Henrik Hellström
on 1 Mar 2016
Answers (1)
Roger Stafford
on 29 Feb 2016
0 votes
If you square both sides of your two equations and then multiply the second equation by G+j*omega*C, you then have two polynomial equations. That should allow you to then solve them.
Categories
Find more on Numerical Integration and Differential Equations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!