Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. clc
  2. clear
  3. t=0:0.0001:1;
  4. n=0:0.0001:1;
  5. y1=sin(2*pi*5*t);
  6. ts=1/10;
  7. N=32;
  8. t1=linspace(0,1,100); %dyskretyzacja czasu 20 razy wieksze Ts niz wystepujace w sygnale
  9. x=sin(2*pi*5*t1); %próbkowanie sygnału
  10.  
  11. figure(2)
  12. subplot(2,1,1)
  13. plot(t,y1)
  14. subplot(2,1,2)
  15. plot(t1,x);
  16.  
  17. y3=exp(-20*(t-0.5).^2).*sin(2*pi*10*t);
  18. figure(3)
  19. subplot(2,1,1)
  20. plot(t,y3)
  21. subplot(2,1,2)
  22. t1=linspace(0,1,200); %dyskretyzacja czasu 20 razy wieksze Ts niz wystepujace w sygnale
  23. x=exp(-20*(t1-0.5).^2).*sin(2*pi*10*t1);
  24. plot(t1,x);
  25.  
  26. y4=(1/2*pi.*t).*sin(2*pi*t);
  27. figure(4)
  28. subplot(2,1,1)
  29. plot(t,y4)
  30. subplot(2,1,2)
  31. t1=linspace(0,1,20); %dyskretyzacja czasu 20 razy wieksze Ts niz wystepujace w sygnale
  32. x=(1/2*pi.*t1).*sin(2*pi*t1);
  33. plot(t1,x);
  34.  
  35. y5=sin(2*pi*(10*t+10*sin(4*pi*t)/(4*pi)));
  36. figure(5)
  37. subplot(2,1,1)
  38. plot(t,y5)
  39. subplot(2,1,2)
  40. t1=linspace(0,1,100); %dyskretyzacja czasu 20 razy wieksze Ts niz wystepujace w sygnale
  41. x=sin(2*pi*(10*t1+10*sin(4*pi*t1)/(4*pi)));
  42. plot(t1,x);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement