We want to use the frequency-sampling method to design a high pass filter with specifications: ωs = 0.5π, ωp = 0.65π, As = 50 dB, and Ap = 1 dB.
(a) Choose M = 31 so that there are two samples in the transition band. Using a raised-cosine transition obtain the filter impulse response. Provide a plot of the log-magnitude and impulse responses. Does this design satisfy the given specifications?
(b) Repeat (a) using the fir2 function and the Hamming window. Does this design satisfy the given specifications?