参考代码如下:
>> syms R1 R2 L C V2 V1 s;
>> eqns = [V1/R2 == (V2 - V1)/(L*s + R1) + (V2 - V1)*s*C]; % s域中的方程 I1 = I2 + I3
>> V2tmp = solve(eqns, V2); % 将V2求出来给V2tmp
>> TF = simplify(V2tmp/V1) % 求传递函数,并化简
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!