7.29. Design a 41-tap bandpass FIR filter with lower and upper cutoff frequencies of 2,500 Hz and 3,000 Hz, respectively, using the following window functions. Assume a sampling frequency of 8,000 Hz.
a. Hanning window function
b. Blackman window function.
List the FIR filter coefficients and plot the frequency responses for each design.
7.30 Design a 41-tap band reject FIR filter with cutoff frequencies of 2,500 Hz and 3,000 Hz, respectively, using the Hamming window function. Assume a sampling frequency of 8,000 Hz. List the FIR filter coefficients and plot the frequency responses.
1)
clc;close all;clear all;
N=41
fc1=2500
fc2=3000
fs=8000
wc=[2*fc1/fs 2*fc2/fs ]
hd=fir1(N-1,wc,'pass')
wh=hanning(N)'%Hanning window
h=hd.*wh
figure;
%frequency response
freqz(h,1,1024,fs)
Command window:(FIR filter coefficients)
>> h
h =
Columns 1 through 10:
-0.00000 0.00001 -0.00002 -0.00003 0.00000 0.00017 0.00036 -0.00256 0.00405 0.00165
Columns 11 through 20:
-0.01553 0.02228 -0.00094 -0.04266 0.06294 -0.01762 -0.06953 0.11155 -0.04837 -0.07278
Columns 21 through 30:
0.13403 -0.07278 -0.04837 0.11155 -0.06953 -0.01762 0.06294 -0.04266 -0.00094 0.02228
Columns 31 through 40:
-0.01553 0.00165 0.00405 -0.00256 0.00036 0.00017 0.00000 -0.00003 -0.00002 0.00001
Column 41:
-0.00000
2)
clc;close all;clear all;
N=41
fc1=2500
fc2=3000
fs=8000
wc=[2*fc1/fs 2*fc2/fs ]
hd=fir1(N-1,wc,'pass')
wh=blackman(N)'%Blackman window
h=hd.*wh
figure;
%frequency response
freqz(h,1,1024,fs)
Command window:
>> h
h =
Columns 1 through 10:
0.00000 0.00000 -0.00001 -0.00001 0.00000 0.00008 0.00017 -0.00137 0.00235 0.00104
Columns 11 through 20:
-0.01056 0.01627 -0.00073 -0.03521 0.05464 -0.01596 -0.06528 0.10766 -0.04761 -0.07249
Columns 21 through 30:
0.13403 -0.07249 -0.04761 0.10766 -0.06528 -0.01596 0.05464 -0.03521 -0.00073 0.01627
Columns 31 through 40:
-0.01056 0.00104 0.00235 -0.00137 0.00017 0.00008 0.00000 -0.00001 -0.00001 0.00000
Column 41:
0.00000
Plot:
3)
clc;close all;clear all;
N=41
fc1=2500
fc2=3000
fs=8000
wc=[2*fc1/fs 2*fc2/fs ]
hd=fir1(N-1,wc,'stop')
wh=hamming(N)'%Blackman window
h=hd.*wh
figure;
%frequency response
freqz(h,1,1024,fs)
Command window:
>> h
h =
Columns 1 through 10:
0.00010 -0.00014 0.00006 0.00006 0.00000 -0.00023 -0.00043 0.00290 -0.00435 -0.00171
Columns 11 through 20:
0.01563 -0.02198 0.00091 0.04096 -0.05989 0.01664 0.06535 -0.10445 0.04517 0.06787
Columns 21 through 30:
0.87448 0.06787 0.04517 -0.10445 0.06535 0.01664 -0.05989 0.04096 0.00091 -0.02198
Columns 31 through 40:
0.01563 -0.00171 -0.00435 0.00290 -0.00043 -0.00023 0.00000 0.00006 0.00006 -0.00014
Column 41:
0.00010
7.29. Design a 41-tap bandpass FIR filter with lower and upper cutoff frequencies of 2,500 Hz...
Design a 31-tap highpass FIR filter whose cutoff frequency is 2,500 Hz using the following window functions. Assume that the sampling frequency is 8,000Hz. a. Hanning window function c. Blackman window function
Design a 5-tap FIR bandpass filter with a lower cutoff frequency of1,600 Hz, an upper cutoff frequency of 1,800 Hz, and a sampling rateof 8,000 Hz using a. rectangular window functionb. Hamming window function.Determine the transfer function and difference equation of the designedFIR system, and compute and plot the magnitude frequency responsefor Ω= 0, π/4, π/2, 3π/4, and π radians.PLEASE SHOW STEPS CLEARLY
7.3. Design a 5-tap FIR lowpass filter with a cutoff frequency of 100 Hz and a sampling rate of 1,000 Hz using a a. rectangular window function b. Hamming window function Determine the transfer function and difference equation of the designed FIR system, and compute and plot the magnitude frequency response for ?--0, ?/4, ?/2, 3r/4, and ? radians.
1 Design a 4th order causal FIR bandpass filter with cutoff frequencies at 9 kHz and 18kHz and sampling frequency of 54 kHz. Use a Blackman window. Give precise numerical values for the filter coefficients. The Blackman window has coefficients as shown below (you need choose one window among the three listed below so that a 4 order linear phase filter is designed. (Circle the one you choose). (35pts) Blackman window 1 O.2008 0.8492 0.8492 0.2008 Blackman window 2 0.1300...
1. Design a 10th-order lowpass FIR filter using the window method (fir1) to cut frequencies above 30Hz in an application where the sampling frequency is 125 Hz. 2. Plot the filter coefficients that define the filter (stem). 3. Plot the frequency response of the FIR filter designed (freqz) 4. Design a 100th-order lowpass FIR filter using the window method (fir1) to cut frequencies above 30Hz in an application where the sampling frequency is 125 Hz. Plot the filter coefficients that...
3. Design a bandpass FIR filter using Kaiser's formula for filter order, using Hamming window with the following specifications: the lower passband and stopband edge frequencies are fpi- 700 Hz, fs1 - 300 Hz, the upper passband and stopband edge frequencies fp2 - 2 kHz fs2 - 2400 Hz, the sampling frequency fs-10 kHz, and 6p-0.03, ando0.004.
matlab code as well please. 7. (100) Design a bandpass FIR filter with the following Spec: (a) Lower cut off frequency: 1250Hz, (b) lower transition width: 1500Hz, (c) upper cutoff frequency: 2850 Hz, (d) upper transition width: 1300 Hz, (e) stop band attenuation: 60dB, (f) passband ripple 0.02 dB, and (g) sampling frequency: 8000Hz. Your answer needs to include (i) normalized frequencies, (ii) Window type, (iii) order of the filter and their numerical values computed by matlab command firwd(), and...
please answer all the question and print matlab code You need to design bandpass filter with lower cutoff freq. of 1000Hz and upper cutoff freq. of 3000Hz. Sampling freq. 10000Hz. Plot the freq. response in DB .Use MATLAB as needed a) FIR with Hamming window at least 7 taps b) IIR using Bilinear Transformation method not more than 2end order. c) Compare the frequency response “freqz” plots and which method you recommend and why? 2 graphs on this part. d)...
In this problem, you are asked to design a length-16 FIR low-pass filter with cutoff frequency ωc = π 2 radians, using the window design method. 2. [FIR Filter Design) In this problem, you are asked to design a length-16 FIR low-pass filter with cutoff frequency We = radians, using the window design method. (a) Find an expression for the coefficients {hn}n using a truncation (rectangular) window. (b) Find an expression for the coefficients {n}=l using a Hamming window. (c)...
Styles Paragraph 6. Given the difference equation y(n)-x(n-1)-0.75y(n-1)-0.125(n-2) a. Use MATLAB function filterl) and filticl) to calculate the system response y(n)for n 0, 1, 2, 3, 4 with the input of x(n (0.5) u(n)and initial conditions x(-1)--1, y(-2) -2, and y(-1)-1 b. Use MATLAB function filter!) to calculate the system response y(n) for n-0, 1, 2, 3,4 with the input of x(n) (0.5)"u(n)and zero initial conditions x(-1)-0, (-2)-0, and y(-1)-0 Design a 5-tap FIR low pass filter with a cutoff...