Advertisement
Guest User

Untitled

a guest
Apr 25th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. RC impulsowe (dirak) R = 1; C = 2; tau = R*C; R1 = 2; tau1 = R1*C; R2 = 3; tau2 = R2*C; t = [0:tau/10:10*tau] t1 = [0:tau1/10:10*tau1] t2 = [0:tau2/10:10*tau2] i = (-1/(R*tau))*exp((-t)/tau) i1 = (-1/(R1*tau1))*exp((-t1)/tau1) i2 = (-1/(R2*tau2))*exp((-t2)/tau2) ur = (-1/tau)*exp((-t)/tau) ur1 = (-1/tau1)*exp((-t1)/tau1) ur2 = (-1/tau2)*exp((-t2)/tau2) uc = (1/tau)*exp((-t)/tau) uc1 = (1/tau1)*exp((-t1)/tau1) uc2 = (1/tau2)*exp((-t2)/tau2) subplot(3,1,1) plot(t,i,'-',t1,i1,'--',t2,i2,':') xlabel('t[s]') ylabel('i[A]') title('prąd') legend('i','i1','i2') subplot(3,1,2) plot(t,ur,'-',t1,ur1,'--',t2,ur2,':') xlabel('t[s]') ylabel('ur[V]') title('napięcie na rezystorze') legend('ur','ur1','ur2') subplot(3,1,3) plot(t,uc,'-',t1,uc1,'--',t2,uc2,':') xlabel('t[s]') ylabel('uc[V]') title('cewka') legend('uc','uc1','uc2')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement