Nitin400

EX2

Aug 3rd, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.37 KB | None | 0 0
  1. clc
  2. close all
  3. clear all
  4. N=12;
  5. m=4;
  6. n=0:0.01:((2*N)-1);
  7. y=sin((2*pi*m*n)/N);
  8. subplot(4,1,1)
  9. plot(n,y)
  10. hold on
  11. m=5;
  12. n1=0:0.01:((2*N)-1);
  13. y1=sin((2*pi*m*n)/N);
  14. subplot(4,1,2)
  15. plot(n1,y1)
  16. hold on
  17. m=7;
  18. n2=0:0.01:((2*N)-1);
  19. y2=sin((2*pi*m*n)/N);
  20. subplot(4,1,3)
  21. plot(n2,y2)
  22. hold on
  23. m=10;
  24. n3=0:0.01:((2*N)-1);
  25. y3=sin((2*pi*m*n)/N);
  26. subplot(4,1,4)
  27. plot(n3,y3)
Add Comment
Please, Sign In to add comment