An ideal lowpass filter has a cutoff frequency of ω c = 0.4 π . We want to obtain a length L = 40 linear-phase FIR filter using the frequency-sampling method.
Let the sample at ω c be equal to 0.5. Obtain the resulting impulse response h [ n ]. Plot the log-magnitude response in dB and determine the minimum stopband attenuation.
Now vary the value of the sample at ω c (up to four decimals) and find the largest minimum stopband attenuation. Obtain the resulting impulse response h [ n ] and plot the log-magnitude response in dB in the plot window of (a).
Save your time - order a paper!
Get your paper written from scratch within the tight deadline. Our service is a reliable solution to all your troubles. Place an order on any task and we will take care of it. You won’t have to worry about the quality and deadlinesOrder Paper Now
Compare your results with those obtained using the fir2 function (choose an appropriate window).