Advertisement
Guest User

Untitled

a guest
Jan 18th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. t=-5:.001:5;
  2.  
  3. y=-3.*sign(t).*exp(2i*pi*t+0.25*t);
  4. subplot(2,1,1);
  5.  
  6. plot(t,real(y));
  7. title('CT signal real');
  8. xlabel('time');
  9. ylabel('function output');
  10.  
  11.  
  12.  
  13.  
  14. z=y.*rectangularPulse(t/4);
  15. subplot(2,1,2);
  16.  
  17. plot(t,imag(y));
  18. title('CT signal imaginary ');
  19. xlabel('time');
  20. ylabel('function output');
  21.  
  22.  
  23.  
  24.  
  25. ---------------------------------------------------
  26. t=-5:.001:5;
  27.  
  28. y=-3.*sign(t).*exp(2i*pi*t+0.25*t);
  29. z=y.*rectangularPulse(t/4);
  30. subplot(2,1,1);
  31. plot(t,real(z));
  32. title('Rectangular Pulse Signal real ');
  33. xlabel('time');
  34. ylabel('function output');
  35.  
  36. subplot(2,1,2);
  37. plot(t,imag(z));
  38. title('Rectangular Pulse Signal imaginary ');
  39. xlabel('time');
  40. ylabel('function output');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement