Guest User

Untitled

a guest
Jan 19th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. t=0:0.001:18;
  2. s=sin (2*pi*0.25*t);
  3. thetaFM= -Df*(1/(2*pi*0.25))*cos(2*pi*0.25*t);
  4. thetaPM = Dp*s;
  5. fc = 1;
  6. A = 1;
  7. Dp = pi;
  8. Df = 2*pi;
  9.  
  10. port = A*cos(2*pi*fc*t);
  11. FM = A*cos(2*pi*fc*t + thetaFM);
  12. PM = A*cos(2*pi*fc*t + thetaPM);
  13.  
  14. subplot(4,1,1);
  15. plot(t, s); title('Información'); xlabel('Tiempo'); ylabel('Amplitud');
  16.  
  17. subplot(4,1,2);
  18. plot(t, port); title('Portadora'); xlabel('Tiempo'); ylabel('Amplitud');
  19.  
  20. subplot(4,1,3);
  21. plot(t, FM); title('FM'); xlabel('Tiempo'); ylabel('Amplitud');
  22.  
  23. subplot(4,1,4);
  24. plot(t, PM); title('PM'); xlabel('Tiempo'); ylabel('Amplitud');
Add Comment
Please, Sign In to add comment