1. Design a bandpass filter to meet the followingspecificatoins: lower stopband edge = 0.3Ï€ upper stopband edge =0.6Ï€ lower passband edge = 0.4Ï€ upper passband edge = 0.5Ï€ Rp = 0.5dB, As = 50 dB Use a sampling frequency of 1000 Hz. You may useMATLAB and the fir1 commmand to implement. It is advisable to checkthe MathWorks site for help on using these commands. It isadvisable to check if the commands use the ripple in dB or inabsolute units and you may use MATLAB commands to convert ifneeded. Note, since you must title and label axes, the default plotfrom freqz is not sufficient but you may use freqz to generate thefrequency response and plot that data using the plot command ( anda few others to convert to dB ). a. Use one of the fixed windowsthat meets specification. Plot the magnitude ( in dB ) and phaseresponse. Note: the order of the filter can be computed accordingto the formulas on page 20 of file ADSP-10 and the example on page23, for example for the Hamming window : 4w = 6.6Ï€/L where L =filter order and 4w is the transition band width. ( 1 point ) b.Use a Kaiser window to meet the same specification. Plot themagnitude ( in dB ) and phase response. You may use MATLAB commandsto estimate the order of the filter and implement using the fir1command. ( 1 point ) c. Verify that both part a. and part b. meetthe Rp and As specifications.
PLEASE SLOVE USING MATLAB