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.

(Please use MATLAB to give all the answers)

Solutions

Expert Solution

m=80; % The length of the Karnel%

n=0:1:m-1; %Defines Range of position value%

p=n-(m-1)/2; %Angle%

fc=5; %Define Cutoff frequency%

Z=sin(2*pi*fc*p)./(pi*p); %Define truncated Sinc function%

stem(n,Z);grid %To represent the discrete signal value & draw the grid lines%

title('Unit Sample Response of the sin function') %Define the title of the figure%

xlabel('n') %Define the label of on x axis%

ylabel('Z') %Define the label of on y axis%

figure; %To draw a figure%

[h,w]=freqz(Z); %get Frequency Response%

plot(w/pi,abs(h));grid

title('Frequency response of the sin function')

xlabel('Frequency')

ylabel('Amplitude')

figure;

s=2*pi*(n/(m-1));              %Angle%

w=0.54-0.46*cos(s); %Define blackman window function%

stem(n,w);grid

title('blackman Window')

xlabel('n')

ylabel('w')

figure;

t=Z.*w;   %Multiplication of blackman Window and sin function%

stem(n,t);grid

title('Multiplication of blackman Window and sin function')

xlabel('n')

ylabel('t')

figure;

[h,w]=freqz(t);

plot(w/pi,abs(h));grid

xlabel('Frequency')

ylabel('Magnitude')

title('Frequency response of the windowed sin function')

figure;grid

freqz(t)

title('Frequency Response of the windowed sin function in dB')


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 .
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