Advertisement
Guest User

Untitled

a guest
May 22nd, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 1.27 KB | None | 0 0
  1. dla 1 i(t)
  2. w = 2 * pi * 50;
  3. R = 10;
  4. C1 = 0.0005;
  5. C2 = 0.0009;
  6. C3 = 0.0012;
  7. m = 1000;
  8. n = 0.001;
  9.  
  10. T = R*C1;
  11. t = 0:T/n:m;
  12. it = 1/R * exp(-t*T);
  13. plot(t,it,'b');
  14. hold on
  15.  
  16. T = R*C2;
  17. t = 0:T/n:m;
  18. it2 = 1/R * exp(-t*T);
  19. plot(t,it2,'r--');
  20. hold on
  21.  
  22. T = R*C3;
  23. t = 0:T/n:m;
  24. it3 = 1/R * exp(-t*T);
  25. plot(t,it3,'g:');
  26. legend('C1 : 5 nmu F' ,'C2 : 9 nmu F' ,'C3 : 12 nmu F');
  27. xlabel('t');
  28. ylabel('i(t)');
  29. hold off
  30.  
  31.  
  32.  
  33.  
  34.  
  35. dla 1 Ur(t)
  36. w = 2 * pi * 50;
  37. R = 10;
  38. C1 = 0.0005;
  39. C2 = 0.0009;
  40. C3 = 0.0012;
  41. m = 1000;
  42. n = 0.001;
  43.  
  44. T = R*C1;
  45. t = 0:T/n:m;
  46. ur = exp(-t*T);
  47. plot(t,ur,'b');
  48. hold on
  49.  
  50. T = R*C2;
  51. t = 0:T/n:m;
  52. ur2 = exp(-t*T);
  53. plot(t,ur2,'r--');
  54. hold on
  55.  
  56. T = R*C3;
  57. t = 0:T/n:m;
  58. ur3 = exp(-t*T);
  59. plot(t,ur3,'g:');
  60. legend('C1 : 5 nmu F' ,'C2 : 9 nmu F' ,'C3 : 12 nmu F');
  61. xlabel('t');
  62. ylabel('i(t)');
  63. hold off
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74. dla 1 Uc(t)
  75. w = 2 * pi * 50;
  76. R = 10;
  77. C1 = 0.0005;
  78. C2 = 0.0009;
  79. C3 = 0.0012;
  80. m = 1000;
  81. n = 0.001;
  82.  
  83. T = R*C1;
  84. t = 0:T/n:m;
  85. uc = 1 - exp(-t*T);
  86. plot(t,uc,'b');
  87. hold on
  88.  
  89. T = R*C2;
  90. t = 0:T/n:m;
  91. uc2 = 1 - exp(-t*T);
  92. plot(t,uc2,'r--');
  93. hold on
  94.  
  95. T = R*C3;
  96. t = 0:T/n:m;
  97. uc3 = 1 - exp(-t*T);
  98. plot(t,uc3,'g:');
  99. legend('C1 : 5 nmu F' ,'C2 : 9 nmu F' ,'C3 : 12 nmu F');
  100. xlabel('t');
  101. ylabel('U_{C}(t)');
  102. hold off
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement