Question

In: Electrical Engineering

Design a LP FIR filter to meet the following specifications using the window method. Use a...

Design a LP FIR filter to meet the following specifications using the window method. Use a Blackman window.

Fs = 25 kHz

Fc = 5.0 kHz (3 dB down)

Attenuation = 80 dB at 7 kHz

Give all the relevant plots (impulse, frequency responses) and the performance of the final filter. Compare this filter to one designed using the optimal method .

Solutions

Expert Solution

Script:

clc;close all;clear all;

Fs=25000;

Fc=5000;wc=2*Fc/Fs;

width=2*pi*4000/Fs;

N=ceil(12*pi/width);

n=0:1:N;

wb=blackman(N+1)';

hh=fir1(N,wc);

%Impulse response

h=hh.*wb;

[H,f]=freqz(h,1,1024,Fs);

figure;

subplot(321)

stem(n,hh);grid;title('Ideal impulse response')

xlabel('n');ylabel('h(n)')

subplot(322)

stem(n,wb);grid;title('Blackman window')

xlabel('n');ylabel('wb(n)')

subplot(323)

stem(n,h);grid;title('desired impulse response')

xlabel('n');ylabel('hd(n)')

subplot(324)

plot(f,abs(H));grid;title('Freqeuncy response-Magntiude')

xlabel('f in Hz');ylabel('|H(f)|')

subplot(325)

plot(f,20*log10(abs(H)));grid;title('Freqeuncy response-Magntiude in db')

xlabel('f in Hz');ylabel('|H(f)|')

subplot(326)

plot(f,angle(H));grid;title('Freqeuncy response-Phase')

xlabel('f in Hz');ylabel('<H(f)>')

figure;% optimal FIR filter design

Rs=80;

[N,fo,ao,w] = firpmord([3000 7000],[1 0],[0.001 10^(-Rs/20)],Fs);

h= firpm(N,fo,ao,w);

freqz(h,1,1024,Fs)

Plots:

using blackman window:

Optimal FIR filter design


Related Solutions

Design a LP FIR filter to meet the following specifications using the window method. Use a...
Design a LP FIR filter to meet the following specifications using the window method. Use a Blackman window. Fs = 25 kHz Fc = 5.0 kHz (3 dB down) Attenuation = 80 dB at 7 kHz Give all the relevant plots (impulse, frequency responses) and the performance of the final filter. Compare this filter to one designed using the optimal method. (Please use MATLAB to give all the answers)
Design a linear phase, minimum-length, band-pass FIR digital filter in MATLAB to meet the specifications listed...
Design a linear phase, minimum-length, band-pass FIR digital filter in MATLAB to meet the specifications listed below. Use Rectangular Windowing (MATLAB function: fir1) pass-band frequencies: f_p1 = 0.35, f_p2 = 0.65 stop-band frequencies: f_s1 = 0.10, f_s2 = 0.80 pass-band tolerance: d_p <= 0.1 stop-band tolerance: d_s <= 0.1 I am attempting to learn more about MATLAB and I am having trouble with specific filter design and it would be helpful to have an example.
2. Design a digital lowpass filter to meet the following specifications: passband edge = 0:45π stopband...
2. Design a digital lowpass filter to meet the following specifications: passband edge = 0:45π stopband edge = 0:5π Rp = 0.5 dB, As = 60 dB a. Design a Buttterworth filter, you may use the butteworth and butter commands to implement. b. Design Chebyshev Type 1 filter ( use the equivalent commands to above ) c. Design an Elliptic filter ( use the equivalent commands to part a ). d. List the order of each filter and find the...
Matlab Design a FIR filter directly using fir1 function in matlab with parameter M = 50....
Matlab Design a FIR filter directly using fir1 function in matlab with parameter M = 50. Design FIR filters with different M = 5, 10, 50, 100, 500 and plot their frequency responses H(e j?) on the same figure.
How to design FIR lowpass filter using matlab. Note : Do not write matlab code. Only...
How to design FIR lowpass filter using matlab. Note : Do not write matlab code. Only explain the steps of designing filter
Design a comb filter in MATLAB that meets the following specifications: it eliminates 5 harmonics of...
Design a comb filter in MATLAB that meets the following specifications: it eliminates 5 harmonics of 100Hz it eliminates dc (zero frequency) |h(t)| <= 0.001 for t> 0.5
Design an IIR digital filter based on the bilinear transformation method using the following transfer function...
Design an IIR digital filter based on the bilinear transformation method using the following transfer function as a reference (use three decimal places of precision for your response): H (s) = 5 / (s ^ 2 + 1.1s +5) The digital filter must have a resonant frequency at wr = pi / 3 a) Calculate H (z) b) Find the correctly simplified difference equation of the designed system. c) Implement the discrete system obtained using block diagram.. Show every step
Q1: Design a 9th order low-pass filter with cut-off ?? /2 using the Hanning window. a)...
Q1: Design a 9th order low-pass filter with cut-off ?? /2 using the Hanning window. a) Plot its frequency response. b) Express the Input/ Output relation. c) let ??[??]{ 0    ??or ??=0,1,2…..,10 {1 ??or ??=11,12,…..30 Calculate ??=????. Plot and comment on the shape of y. Q2: Design a 9th order high-pass filter with cut-off ??/ 4 using the Hanning window. a) Plot the frequency response. b) Express the Input/ Output relation. c) let ??[??]={ 0    ??or ??=0,1,2…..,10 {1...
Design a 9th order low-pass filter with cut-off ??/ 2 using the Hanning window. a) Plot...
Design a 9th order low-pass filter with cut-off ??/ 2 using the Hanning window. a) Plot its frequency response. b) Express the Input/ Output relation. c) let ??[??] = { 0           ?????? ?? = 0,1,2…..,10 1    , ?????? ?? = 11,12,…..30        Calculate ?? = ?? ? ?. Plot and comment on the shape of y.
Write a report 3-4 pages in DSP Digital FIR filter design Analysis {Low Pass Filter(LPF) ,High...
Write a report 3-4 pages in DSP Digital FIR filter design Analysis {Low Pass Filter(LPF) ,High Pass Filter(HPF), Band Pass Filter (BPF), Band Stop Filter (BSF)} Design 1-way of design and system pools evaluation
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT