Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2020
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. clc
  2. clear
  3.  
  4. r=1000
  5. c=10*(10^(-6))
  6. tau=r*c
  7. t=0:0.0001:50*10^(-3)
  8. a=1/(1+4*pi*pi)
  9. b=(2*pi)/(1+4*pi*pi)
  10. d=-1/(1+4*pi*pi)
  11.  
  12. new=a*cos(200*pi*t)+b*sin(200*pi*t)+d*exp(-100*t)
  13. figure(1)
  14. plot(t,new,'k')
  15. xlabel('Time')
  16. ylabel('Volt of source (Vs) ')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement