Combining symbolic differential equations

2 次查看(过去 30 天)
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