daily pastebin goal
29%
SHARE
TWEET

Untitled

a guest May 16th, 2018 106 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. clc;clear;
  2. W1 = 46e-6;
  3. W2=3300e-6;
  4. R=10;
  5. Ay=24; fy=100e3;
  6. h=1/fy/20;  tkon=10/fy;
  7. t=[h:h:tkon]
  8. y=Ay*sin(2*%pi*fy*t)
  9. N= lenght(t)
  10.  
  11. for n=1:N
  12.     if n!=1 then
  13.    
  14.     end
  15.        
  16. end
  17.  
  18. figure;
  19. subplot(2,2,1);
  20. plot(t,x1)
  21. xlabel('t[s]'); ylabel('vL[V])');
  22. subplot(2,2,2);
  23. plot(t,x2); xlabel('t[s]');ylabel('iL[A]');
  24.  
  25. subplot(2,2,3);
  26. plot(t,x3)
  27. xlabel('t[s]'); ylabel('vC[V])');
  28. subplot(2,2,4);
  29. plot(t,x4); xlabel('t[s]');ylabel('iC[A]');
RAW Paste Data
Top