Advertisement
Guest User

Untitled

a guest
Dec 14th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.61 KB | None | 0 0
  1. r1= 0.2;
  2. r2= linspace(0,100, 5000);
  3. c= 53*1e-6;
  4. l= 83*1e-6;
  5. Uin = 1;
  6. %w = 1 / sqrt(c*l)  % идеален случай, не наистина
  7. w = sqrt((r2.^2) ./ (r2.^2.*l*c+l^2))
  8. f = w ./ (2*pi);
  9. Zreal = r1 -((r2.*w.^2*l^2)./(r2.^2-w.^2*l^2));
  10. Zimag = -1./(w.*c) + (r2.^2.*w.*l)./(r2.^2-w.^2*l^2);
  11.  
  12. Irezonans = Uin ./ Zreal;
  13. UL = w*l.*Irezonans;
  14. UC = (1./(w.*c)).*Irezonans;
  15. Q = UL ./ Uin;
  16. Q2 = UC ./ Uin;
  17.  
  18. %plot(r2, Q), hold on
  19. %plot(r2, Q2)
  20. plot(r2, UC)
  21. % plot(f, Zimag), hold on
  22. % plot(w([1,end])/2/pi,[0,0],'k'), hold on
  23. % plot(f, Q)
  24. % grid on, ylim([-200 200])
  25. % xlabel('Freq,Hz'),ylabel('Im(Z)')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement