Advertisement
Alisator

Uloha2_ANS_FEL

Oct 1st, 2014
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.38 KB | None | 0 0
  1. N = 1000;
  2. %filtr coef
  3. b= [1 0 0 0 -1];
  4. a = [1 -1 0 0 0];
  5. whiteNoise = randn(1,N);
  6. y = filter(b,a,whiteNoise);
  7. He0pi = (1-exp(-4*1i*0*pi))/(1-exp(1*1i*0*pi))
  8.  
  9. %plots
  10. figure;
  11. subplot(2,1,1)
  12. freqz(b,a);
  13. subplot(2,1,2)
  14. zplane(b,a);
  15. figure;
  16. subplot(2,1,1)
  17. plot(whiteNoise)
  18. title('white noise before filtering')
  19. subplot(2,1,2)
  20. plot(y)
  21. title('white noise after filtering')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement