我一眼看不出来,但是你的题目对matlab来讲太简单
clear all;
clc;
syms r1 r2 r3 c1 c2 c3 s
pz=@(z1,z2) z1*z2/(z1+z2) %阻抗并联规则
sz=@(z1,z2) (z1+z2) %阻抗串联规则
Zg=pz(r1,sz(r3,1/s/c2))
Zf=pz(1/s/c3,sz(r2,1/s/c1))
hs=collect(Zf/Zg,s)
[num,den]=numden(hs)
Z=simple(solve(num,s))
P=simple(solve(den,s))
答案:
Z =
-1/(c2*(r1 + r3))
-1/(c1*r2)
P =
0
-1/(c2*r3)
-(c1 + c3)/(c1*c3*r2)
还好,勉强知道你在说什么
|