Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- U=10;
- R=10;
- L1=10;
- L2=200;
- L3=500;
- %L1
- tau1=R/L1;
- t1=[0:0.1*tau1:10*tau1];
- i1=(U/R)*(1-exp(-tau1*t1))
- uL1=U*exp(-tau1*t1);
- %L2
- tau2=R/L2;
- t2=[0:0.2*tau2:200*tau2];
- i2=(U/R)*(1-exp(-tau2*t2))
- uL2=U*exp(-tau2*t2);
- %L3
- tau3=R/L3;
- t3=[0:0.2*tau3:500*tau3];
- i3=(U/R)*(1-exp(-tau3*t3))
- uL3=U*exp(-tau3*t3);
- plot(t1,uL1,'b-',t2,uL2,'r-',t3,uL3,'g-');
- xlabel('t(s)');
- ylabel('uL');
- legend('L1','L2','L3');
- title('Napięcie na cewce');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement