Advertisement
Guest User

Untitled

a guest
Apr 25th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. clear all;
  2.  
  3. Fs = 10000;
  4. fp = 1500;
  5. fs = 1300;
  6. rp = 2;
  7. rs = 35;
  8.  
  9. [sellip,wnellip] = ellipord( fp/(Fs/2), fs/(Fs/2), rp, rs);
  10. [bellip,aellip] = ellip(sellip, rp, rs, wnellip, 'high');
  11.  
  12. figure(1)
  13. subplot(2,1,1)
  14. freqz(bellip,aellip)
  15.  
  16. % parametry
  17. f = 1000;
  18. % casova osa
  19. N = 400;
  20. n = 0:N-1;
  21. t = n(:)/Fs;
  22. % generace signalu
  23. x = cos( (-pi/3)*f*t);
  24.  
  25. figure(2)
  26. subplot(2,1,1)
  27. stem(x)
  28. subplot(2,1,2)
  29. zplane(bellip,aellip)
  30.  
  31. %Josef Prorok
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement