Advertisement
Guest User

Untitled

a guest
Nov 15th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. clc;
  2. clear;
  3. fp=500e3;
  4. f=10e3;
  5. li_cykli=5;
  6. t=0:1/fp:li_cykli*1/f;
  7. x=cos(2*pi*f*t);
  8. fp1=30e3;
  9. t1=0:1/fp1:li_cykli*1/f;
  10. x1=cos(2*pi*f*t1);
  11. fp2=50e3;
  12. t2=0:1/fp2:li_cykli*1/f;
  13. x2=cos(2*pi*f*t2);
  14. plot(t1,x1);
  15. hold on;
  16. stem(t1,x1);
  17. figure;
  18. plot(t,x);
  19. hold on;
  20. stem(t2,x2);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement