Solving complex non-polynomial system of equations

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

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.
Yes, I am looking for real R, L, G and C. The problem is that when I try to solve it using the method above Matlab gives me an error. The error seems to arise because of the constant omega.
How can I solve this system of equations using Matlab?

Sign in to comment.

Answers (1)

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

Asked:

on 29 Feb 2016

Community Treasure Hunt

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

Start Hunting!