Combining symbolic differential equations

조회 수: 2 (최근 30일)
Michael
Michael 2022년 7월 11일
댓글: Michael 2022년 7월 11일
Hello,
I have the following two equations:
syms R C positive
syms u_e(t) u_a(t) i(t)
eq1 = u_e(t) == R * i(t) + u_a(t)
eq1 = 
eq2 = i(t) == C * diff(u_a(t), t)
eq2 = 
I want to use the expression i(t) of equation 2 in equation 1. Using solve does not help.
solve(eq2, i(t))
Warning: Solutions are parameterized by the symbols: [z1, z2], z2. To include parameters and conditions in the solution, specify the 'ReturnConditions' value as 'true'.
Warning: Solutions are only valid under certain conditions. To include parameters and conditions in the solution, specify the 'ReturnConditions' value as 'true'.
ans = struct with fields:
C: z1 t: z2
Could anyone give me a hint, how to do this?
Michael
  댓글 수: 1
Michael
Michael 2022년 7월 11일
Meanwhile I found the following solution:
syms R C positive
syms u_e(t) u_a(t) i(t)
syms U_0 real
Gl1 = u_e(t) == R * i(t) + u_a(t)
Gl1 = 
Gl2 = i(t) == C * diff(u_a(t), t)
Gl2 = 
Gl3 = subs(Gl1,lhs(Gl2), rhs(Gl2))
Gl3 = 
Thank you for your discussion.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by