Professional Documents
Culture Documents
To design a filter to keep the 15 Hz sinusoid and get rid of the 5 and 30 Hz sinusoids,
we create an eighth order IIR filter with a passband from 10 to 20 Hz. Here is its
frequency response. The filter was created with the ELLIP command.
[b,a] = ellip(4,0.1,40,[10 20]*2/Fs);
[H,w] = freqz(b,a,512);
plot(w*Fs/(2*pi),abs(H));
xlabel('Frequency (Hz)'); ylabel('Mag. of frequency response');
grid;