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
Roger Stafford
2016년 2월 29일
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
2016년 3월 1일
답변 (1개)
Roger Stafford
2016년 2월 29일
0 개 추천
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.
카테고리
도움말 센터 및 File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!