Advertisement
Guest User

Untitled

a guest
Nov 12th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. R1 = 1e3;
  2. R2 = 1e3;
  3. C1 = 0.032e-6;
  4. C2 = 0.032e-6;
  5. fmin=1;
  6. fmax=1e6;
  7.  
  8. plotq(R1,R2,C1,C2,fmin,fmax);
  9.  
  10. function plotq(R1,R2,C1,C2,fmin,fmax)
  11. h=0.01;
  12. x = fmin:h:fmax;
  13. y = 20*log(abs((1/(R1*R2*C1*C2))./(((1j*2*pi*x).^2)+((1j*2*pi*x)*((1/(R1*C1))+((1/(R2*C1))+(1/(R2*C2)))))+(1/(R1*R2*C1*C2)))));
  14.  
  15. figure
  16. semilogx(x,y)
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement