Solving complex non-polynomial system of equations
Afficher commentaires plus anciens
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 commentaires
Roger Stafford
le 29 Fév 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
le 1 Mar 2016
Réponses (1)
Roger Stafford
le 29 Fév 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.
Catégories
En savoir plus sur Numerical Integration and Differential Equations dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!