Not simplifying to a usable answer
显示 更早的评论
I am trying to get matlab to do the number crunching for an operational amplifier that has some parallel impedances.

This is how z1 and z2 are supposed to simplify according to the answer booklet, but matlab isn't simplifying anything. I don't get why it wouldn't as the answer booklet did it by hand somehow. Any advice?

4 个评论
Torsten
2023-2-15
Did you try multiplying numerator and denominator of your answer by 2640/6.9690e35 ?
Hmmm
syms s
%sympref('FloatingPointOutput',true)
zeq = 4*10^5*s+0.25*10^6;
z1 = 10^11/zeq + 4*10^5;
zeq2 = (110*10^3*s+0.25*10^6);
z2 = 27.5*10^9/zeq2 + 6*10^5;
out = collect((z1+z2)/z1)
Andrew Piotrowski
2023-2-15
A somewhat different approach yielding a different result —
syms s
Z_1 = 4E+5 + (1E+11/s) / (4E+5 + 0.25E+6/s);
Z_2 = 6E+5 + (27.5E+9/s) / (110E+3 + 0.25E+6/s);
Z = vpa((Z_1+Z_2) / Z_1)
Zs = simplify(Z, 500)
Zsf = simplifyFraction(Z)
[n,d] = numden(Zsf);
Zsf = n / expand(d)
.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Spectral Measurements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!








