Question

DON'T USE MATLAB to design a digital filter using the window method to meet the following...

DON'T USE MATLAB to design a digital filter using the window method to meet the following requirements:
Stop band attenuation: ≥43 dB and <49 dB
Pass band edge frequency: 3.2 kHz
Stop band: 0 to 2.4 kHz
Maximum pass band ripple: 0.0546 dB
Phase response: Linear.
Sampling frequency: 16 kHz
Determine the first 6 filter coefficients.

NB: Please don't use MATLAB to get the answers. do it manually!

Homework Answers

Answer #1

FIR High pass filter design
(a)
Fs=16000 Hz
fp=3200Hz
fs=2400 Hz;
fc=(fp+fs)/2=(3200+2400)/2= 2800Hz

Cut off frequency,
wc=2*pi*fc/Fs = 2*pi*2800/16000 = 0.35 pi

Transition width =2*pi*( fp-fs)/Fs=2*pi*( 3200-2400)/16000= 0.1pi
______________________________________________________________________


(b) For the stop band attenuation between 43 db and 49db ,Hamming window is needed.

______________________________________________________________________

(c) The main lobe width the window is 8pi/N

N=8 pi/ transition width = 8*pi/0.1*pi = 80

Choose N=81

______________________________________________________________________
(d)
The desired impulse response of FIR low pass filter is

hd(n) =sin(wc(n-a))/(pi(n-a))
where wc = 0.35 pi
n=0 to 80
a=(N-1)/2 =(81-1)/2= 40
hd(40) =wc/pi=0.35pi/pi =0.35.

hd(n) =sin(0.35 *pi(n-40))/(pi(n-40))

The first 6 ideal filter coefficients are


hd(n) = [0 -0.0073 -0.0068 0.0013 0.0084 0.0064 ...]
____________________________________________________________
e)
Tha Hamming window function is
wH(n) = 0.54-(0.46*cos(2*pi*n/(N-1)) where N=81
      = 0.54-(0.46*cos(2*pi*n/80))

The first 6 hamming window samples are

wH(n)=[0.08 0.0814 0.0857 0.0927 0.1025 0.1150 ...]
_________________________________________________________________
f)
The impulse response h(n) is h(n)=hd(n) wH(n)
The product of hd(n) and wH(n) is

h(n)= [0 -0.5921 -0.5805 0.1248 0.8621 0.7396....] *(10^(-3))

Calculations:

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Design a FIR filter using the Kaizer window method for the sepcifications: Edge of pass band...
Design a FIR filter using the Kaizer window method for the sepcifications: Edge of pass band = 0.2π Edge of stop band = 0.3π Pass band ripple = 0.25 dB Minimum stopband attenuation = 50 dB
PLEASE ANSWER QUESTION #2 Design an FIR band-pass filter with cutoff frequencies of π/ 4 and...
PLEASE ANSWER QUESTION #2 Design an FIR band-pass filter with cutoff frequencies of π/ 4 and π/ 6 . The filter’s impulse response should have 81 samples (i.e. N = 81). Use a Blackman filter window. (a) Plot the filter’s impulse response (b) Plot the magnitude of the filter’s frequency response, in dB. (i.e. 20 log(|H(e jω)|)) (c) Print out the MATLAB code used in the filter design 2. Use the filter designed in #1 to filter a random input...
MATLAB FIR filter design. The audio file, covering the frequency range of roughly 0 to 3000...
MATLAB FIR filter design. The audio file, covering the frequency range of roughly 0 to 3000 Hz, is very badly corrupted with high?level noise. Your problem is to design a digital filter that will sufficiently attenuate the noise so that the audio speech is intelligible. (sorry but chegg doesn't allow me to attach the wav file) Here is the design template: clear, clc % clear all variables %% Read in the noisy audio signal from the file 'CapnJ.wav' using audioread...
The following question has to be implemented using matlab programming and fdatool a. Extract samples of...
The following question has to be implemented using matlab programming and fdatool a. Extract samples of a music file of a suitable format (sample.mp3, made available on the moodle) providing a duration of 2 seconds playtime, add a colored noise centered around 4.5kHz to the extracted samples so that the SNR is -15 dB. b. Realize an FIR (hamming) and IIR lowpass filter of order 10 having a cutoff frequency of 3kHz respectively. (Obtain the sampling frequency value from the...
Problem 3 you can use Matlab and also i give u the Problem 1 code its...
Problem 3 you can use Matlab and also i give u the Problem 1 code its on Matlab Using the same initial code fragment as in Problem 1, add code that calculates and plays y (n)=h(n)?x (n) where h(n) is the impulse response of an IIR bandpass filter with band edge frequencies 750 Hz and 850 Hz and based on a 4th order Butterworth prototype. Name your program p3.sce this is the Problem 1 code and the solutin clear; clc;...
Problem 1....... you can use Matlab The following Scilab code generates a 10-second “chirp” with discrete...
Problem 1....... you can use Matlab The following Scilab code generates a 10-second “chirp” with discrete frequencies ranging from 0 to 0.2 with a sampling frequency of 8 kHz. clear; Fs = 8000; Nbits = 16; tMax = 10; N = Fs*tMax+1; f = linspace(0.0,0.2,N); x = zeros(f); phi = 0; for n=0:N-1 x(n+1) = 0.8*sin(phi); phi = phi+2*%pi*f(n+1); end sound(x,Fs,Nbits); sleep(10000); //allows full sound to play Add code that calculates and plays y (n)=h(n)?x (n) where h(n) is the...