MATLAB: Electrical Systems My Solutions > Figure below shows a circuit made up of two RC circuits. Find the dynamic equa
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
MATLAB: Electrical Systems My Solutions > Figure below shows a circuit made up of two RC circuits. Find the dynamic equa
MATLAB: Electrical Systems My Solutions > Figure below shows a circuit made up of two RC circuits. Find the dynamic equations of the system. Use variable e0 for your answer. Script 0 1 \% Variables KVL1 KVL2 eqn1 eqn2 e0 2 \% for symbolic declaration R1 R2 C1 C2 e0 e1(t) e2(t) De1(t) De2(t) 3 format compact 4 syms R1 R2 C1 C2 e0 e1(t)e2(t) De1(t) De2(t) 5 De1 = diff(e1) 6 De2 = diff(e2) 7 \% Write the KCL equation for node voltage, e1. 8 \% Use Ohm's law and the current through a capacitor to rewrite the KCL equation for node voltage, e1, in terms of e0, e1, e2, R1, R2, and C1. 9 KVL1 = 10 \% Write the KCL equation for the node voltage, e2. 11 \% Use ohm's law and the current through a capacitor to rewrite the KCL equation for node voltage, e2, in terms of e1, e2, R2, and C2. 12 KVL2 = 13 \% Solve equation for e0. 14 eqn1 = 15 \% Solve equation for e1. 16 eqn2 = 17 \% Use algebra to substitute one equation into the other and solve for the dynamic equation. 18 eqn1 = subs(eqn1, lhs(eqn2), rhs (eqn2)) 19 e0 = rhs (eqn1) 20 \% Simplify equation to solve for the dynamic equation.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!