Advertisement
Guest User

Untitled

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