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에서 Assembly에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!








