Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- N = 1000;
- %filtr coef
- b= [1 0 0 0 -1];
- a = [1 -1 0 0 0];
- whiteNoise = randn(1,N);
- y = filter(b,a,whiteNoise);
- He0pi = (1-exp(-4*1i*0*pi))/(1-exp(1*1i*0*pi))
- %plots
- figure;
- subplot(2,1,1)
- freqz(b,a);
- subplot(2,1,2)
- zplane(b,a);
- figure;
- subplot(2,1,1)
- plot(whiteNoise)
- title('white noise before filtering')
- subplot(2,1,2)
- plot(y)
- title('white noise after filtering')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement