Question 1
(a) Generate N = 300 samples of a sine wave of frequency f = 34 Hz and sampled at fs = 43 Hz. Call it x.
(b) Use a proper function in Matlab (of your choice) to design a linear phase response low-pass FIR filter with the following specification:
• The cut-off frequency is 0.9 × fs 2 (Hz)
• The stopband attenuation is 80 dB.
(c) Use the filter obtained in part (b) to filter x (use the filter function in Matlab). Comment on and explain what you see in both the time domain and the frequency domain
of the output
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 1 | 2 | 3 | 4 | 5 |