Advertisement
Guest User

Untitled

a guest
Apr 25th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. U=10;
  2. R=10;
  3. L1=10;
  4. L2=200;
  5. L3=500;
  6.  
  7. %L1
  8. tau1=R/L1;
  9. t1=[0:0.1*tau1:10*tau1];
  10. i1=(U/R)*(1-exp(-tau1*t1))
  11. uL1=U*exp(-tau1*t1);
  12.  
  13. %L2
  14. tau2=R/L2;
  15. t2=[0:0.2*tau2:200*tau2];
  16. i2=(U/R)*(1-exp(-tau2*t2))
  17. uL2=U*exp(-tau2*t2);
  18.  
  19. %L3
  20. tau3=R/L3;
  21. t3=[0:0.2*tau3:500*tau3];
  22. i3=(U/R)*(1-exp(-tau3*t3))
  23. uL3=U*exp(-tau3*t3);
  24.  
  25. plot(t1,uL1,'b-',t2,uL2,'r-',t3,uL3,'g-');
  26. xlabel('t(s)');
  27. ylabel('uL');
  28. legend('L1','L2','L3');
  29. title('Napięcie na cewce');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement