|
貢獻code-matlab amp
好像不錯 下再看看
2 c0 c& i" D& es = tf('s');
/ d* @7 }& {. k3 R& t @6 YR1=2e3& {% m% B2 M+ ~* D7 R! F3 C) Z
C1 =0.47e-94 M" ^2 w9 B5 n& N& U: o3 y
R2 =8.2618e+003
: z4 K& `5 Z WR3 =500
6 G; M1 x6 n' C- tZ1=R3+(R1/(1+s*C1*R1))& N, Q9 ^* z4 y+ x [# k/ }
Z2=R2
& y9 e& @! @; ^" }/ Q8 `2 i# Y% OPA gain:A;OPA open loop gain:A0 ; dominant pole ; compensator close feedback gain:Gcl + j; b0 }+ W# t, Y. F
A0=10.7
3 @, n- m. N+ F2 V/ Bp=5e3/ i! c& m' J f1 y+ Z
A=A0*p/(s+p)/ l) g4 s% c- i4 e
figure(1); Q5 x! [! j, L! b7 V G+ g% r
margin(A)
% ]! G, e' g6 X0 Z' CGc=-((Z2/Z1)/(1+((1+(Z2/Z1))/A)))
" [, O( c4 R! e5 Ofigure(2)8 _; Z+ M- s4 a
margin(Gc) |
|