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!








