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