Advertisement
Guest User

Untitled

a guest
May 22nd, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Octave 0.73 KB | None | 0 0
  1. w = 2 * pi * 50
  2. R = 5
  3. C1 = 0.0005
  4. C2 = 0.0009
  5. C3 = 0.0011
  6. m = 50
  7. n = 100
  8. U = 1
  9. T = R*C1
  10. t = 0:T/n:m*2*C3
  11. A = asin (w / (sqrt ((1/T)ˆ2 +2))) ;
  12. it = U/R * (1/(sqrt(1+(w*T)ˆ2))) * (-exp(-t/T) * sin(A) + cos(w*t-A) * ...
  13. w * T);
  14. plot(t,i t)
  15. hold on
  16. T = R*C2
  17. t = 0:T/n:m*2*C3
  18. A = asin (w/(sqrt((1/T)ˆ2 +2)));
  19. it2 = U/R * (1/(sqrt(1+(w*T)ˆ2))) * (-exp(-t/T) * sin(A) + cos (w * t - A) ...
  20. * w * T);
  21. plot (t,it2, 'r - - ')
  22.  hold on
  23.  T = R*C3
  24.  t = 0:T/n:m*2*C3
  25.  A = asin (w/(sqrt((1/T)ˆ2 +2)));
  26.  it3 = U/R * (1/( sqrt(1+(w*T)ˆ2)))*(-exp(-t/T) * sin(A) + cos (w * t - A) ...
  27. * w * T);
  28.  plot ( t, it3, 'g : ')
  29.  legend('C1 : 5 nmu F' ,'C2 : 9 nmu F' ,'C3 : 11 nmu F' ,1);
  30.  xlabel('t');
  31. ylabel('i(t)');
  32. hold off
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement