Advertisement
rotno98

data com 2

Mar 9th, 2020
719
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.27 KB | None | 0 0
  1. clc;
  2. t=linspace(0,1,500);
  3. fm=5;
  4. %A=2;
  5. y1=sin(2*pi*fm*t);
  6.  
  7. subplot(3,1,1);
  8. plot(t,y1);
  9.  
  10. %t1=linspace(0,1,100);
  11. fc=50;
  12. %A=2;
  13. y2=sin(2*pi*fc*t);
  14.  
  15. subplot(3,1,2);
  16. plot(t,y2);
  17.  
  18. %plot(y2,y1);
  19.  
  20. %subplot(2,2,4);
  21.  
  22. z=y2+(y1.*y2);
  23.  
  24.  
  25. subplot(3,1,3);
  26. plot(t,z);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement