Question

DSP Lab Exercise 9 Given below are the Impulse Response h(n), of the four main types of FIR Digital filters. Use appropriate
0 0
Add a comment Improve this question Transcribed image text
Answer #1

9amm an response in matlab frad fistH usig z- fronofoom (a) FIR LPF (b) FIR HPF 2 (C) FIR 8PF 3-22 (르의 1-2 H(Z) = 2 (a) FIR1)matlab code and result

clear;clc;
%for part (a) FIR LPF digital filter
b1=[1 1];
a1=[2 0];
H1=tf(b1,a1,-1);
[h1,w1]=freqz(b1,a1);
%for part (b) FIR HPF digital filter
b2=[1 -1];
a2=[2 0];
H2=tf(b2,a2,-1);
[h2,w2]=freqz(b2,a2);
%for part (c) FIR BPF digital filter
b3=[1 0 -1];
a3=[2 0 0];
H3=tf(b3,a3,-1);
[h3,w3]=freqz(b3,a3);
%for part (d) FIR BSF digital filter
b4=[1 0 1];
a4=[2 0 0];
H4=tf(b4,a4,-1);
[h4,w4]=freqz(b4,a4);
figure(1);
subplot(221);pzplot(H1);
title('pole zero plot of FIR LPF digital filter');
subplot(222);pzplot(H2);
title('pole zero plot of FIR HPF digital filter');
subplot(223);pzplot(H3);
title('pole zero plot of FIR BPF digital filter');
subplot(224);pzplot(H4);
title('pole zero plot of FIR BSF digital filter');
figure(2);
subplot(221);plot(w1,abs(h1));
title('magnitude response plot of FIR LPF digital filter');
xlabel('\omega');ylabel('|H(\omega)|');
xlim([0 pi]);xticks(0:pi/4:pi);
xticklabels({'0','\pi/4','\pi/2','3\pi/4','\pi'});
subplot(222);plot(w1,abs(h2));
title('magnitude response plot of FIR HPF digital filter');
xlabel('\omega');ylabel('|H(\omega)|');
xlim([0 pi]);xticks(0:pi/4:pi);
xticklabels({'0','\pi/4','\pi/2','3\pi/4','\pi'});
subplot(223);plot(w1,abs(h3));
title('magnitude response plot of FIR BPF digital filter');
xlabel('\omega');ylabel('|H(\omega)|');
xlim([0 pi]);xticks(0:pi/4:pi);
xticklabels({'0','\pi/4','\pi/2','3\pi/4','\pi'});
subplot(224);plot(w1,abs(h4));
title('magnitude response plot of FIR BSF digital filter');
xlabel('\omega');ylabel('|H(\omega)|');
xlim([0 pi]);xticks(0:pi/4:pi);
xticklabels({'0','\pi/4','\pi/2','3\pi/4','\pi'});
figure(3);
subplot(221);plot(w1,angle(h1));
title('phase response plot of FIR LPF digital filter');
xlabel('\omega');ylabel('\angle(H(\omega))');
xlim([0 pi]);xticks(0:pi/4:pi);
xticklabels({'0','\pi/4','\pi/2','3\pi/4','\pi'});
subplot(222);plot(w1,angle(h2));
title('phase response plot of FIR HPF digital filter');
xlabel('\omega');ylabel('\angle(H(\omega))');
xlim([0 pi]);xticks(0:pi/4:pi);
xticklabels({'0','\pi/4','\pi/2','3\pi/4','\pi'});
subplot(223);plot(w1,angle(h3));
title('phase response plot of FIR BPF digital filter');
xlabel('\omega');ylabel('\angle(H(\omega))');
xlim([0 pi]);xticks(0:pi/4:pi);
xticklabels({'0','\pi/4','\pi/2','3\pi/4','\pi'});
subplot(224);plot(w1,angle(h4));
title('phase response plot of FIR BSF digital filter');
xlabel('\omega');ylabel('\angle(H(\omega))');
xlim([0 pi]);xticks(0:pi/4:pi);
xticklabels({'0','\pi/4','\pi/2','3\pi/4','\pi'});
pole zero p t of FIR LPF digital filter pole zero plot of FIR HPF digital filter 0.5 0.5 -0.5 0.5 1 0.8 0.6 0.4 0.2 00.20.40.magnitude response plot of FIR LPF digital filter magnitude response plot of FIR HPF digital filter 0.8 0.8 0.6 0.6 0.4 0.4 0phase response plot of FIR LPF digital filter phase response plot of FIR HPF digital filter -0.2 -0.4 0.6 -0.8 0.8 0.6 0.4 0.

Add a comment
Know the answer?
Add Answer to:
DSP Lab Exercise 9 Given below are the Impulse Response h(n), of the four main types of FIR Digit...
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. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • (a) The impulse response hfn of an FIR filter satisfies the following property: h[n]- otherwise where...

    (a) The impulse response hfn of an FIR filter satisfies the following property: h[n]- otherwise where M is an even integer. Derive the filter's frequency response and show that it has a linear phase. Why is linear phase a desired property ? (b) You are asked to design a linear-phase FIR filter. The required pass-band is from 1,000 Hz to 3,000 Hz. The input signal's sampling frequency is 16, 000Hz e the pass-band in the w domain 1. GlV n...

  • (a) A system has the impulse response, h[n], and is excited with the input signal, xIn], as shown below. Using either a mathematical or a graphical convolution technique, determine the outp...

    (a) A system has the impulse response, h[n], and is excited with the input signal, xIn], as shown below. Using either a mathematical or a graphical convolution technique, determine the output of the system, y[n] (that is, evaluate y[n] h[nl'xIn], where" denotes convolution). 17 marks xIn INPUT FIR filter 0.5 0.25 OUTPUT 0 1 345 6 7 .. 0.5 0123 4567 (b) An IIR filter is shown below: ylnl One sample delay (z) 0.4 i) Derive the difference equation describing...

  • Implementing a 3-Band Equaliser

    Design and implement a 3-band equaliser using a DSP board or MPLab/CSS. The  MATLAB Filter Designer could be used for filter design and graphing subject to  the design requirements given below. This is an individual CW 2. Equaliser Primer An n-band equaliser is a device used to correct the frequency response  characteristic of a signal processing system. Equalisers can be implemented using  digital or analogue filters. The whole bandwidth of the equaliser is divided into n  frequency bands, which can...

  • The impulse response of an ideal band pass filter is given by the equation: n 0 h(n)=-sin(nw.) wl...

    The impulse response of an ideal band pass filter is given by the equation: n 0 h(n)=-sin(nw.) wl sin(nw!) nヂ0 Using the above equation, write a Matlab program that implements an approximation for the band pass filter with cut-off frequencies ω1-0.2π rad/sample and c02-0.3t rad/sample. Set the order of the filter to 100 or 101. Use a Bartlett window here. Plot the frequency and phase responses of this digital filter. The impulse response of an ideal band pass filter is...

  • 1. The impulse response of an ideal band pass filter is given by the equation: n=0 h(n)w2 sin(n w...

    Do it using Matlab. 1. The impulse response of an ideal band pass filter is given by the equation: n=0 h(n)w2 sin(n w2) w1 sin (n w1) T nwW2 Using the above equation, write a Matlab program that implements an approximation for the band pass filter with cut-off frequencies (1-0.2π rad/sample and ω2-0.3π rad/sample. Set the order of the filter to 100 or 101. Use a Bartlett window here. Plot the frequency and phase responses of this digital filter. Hint...

  • EE 448 Homework #6 1. Determine the impulse response, h(n), and plot the magnitude frequency response...

    EE 448 Homework #6 1. Determine the impulse response, h(n), and plot the magnitude frequency response of each of the following FIR filters using the specified window methods. (25 pts) Low-pass filter having a cutoff frequency of /5, using the rectangular window and M-25 a. b. (25 pts) Low-pass filter having a cutoff frequency of z/5, using the Bartlett window and M=25 (25 pts) Low-pass filter having a cutoff frequency of /5, using the Hamming window and M-25 c. d....

  • Consider a filter characterized by the following impulse response: h [1, 2, -1, 1] Which of...

    Consider a filter characterized by the following impulse response: h [1, 2, -1, 1] Which of the following statements are true about the filter? Assume that the sampling frequency in this application is 8192 Hz. (You may use MATLAB to help you analyze this filter). o 1. The filter characterized by h = 1 2 1 1 Is a frequency selective FIR filter. In terms of the frequency response the ter is best characterized as a band-stop filter with a...

  • Using the windowing functions discussed in class, design a low-pass FIR filter with a cutoff freq...

    Using the windowing functions discussed in class, design a low-pass FIR filter with a cutoff frequency of 2 kHz, a minimum stop band attenuation of 40 dB, and a transition width of 200Hz. The sampling frequency is 10kHz. 1. Using the windowing functions discussed in class, design a low-pass FIR filter with a cutoff frequency of 2 kHz, a minimum stop band attenuation of 40 dB, and a transition width of 200 Hz. The sampling frequency is 10 kHz 2....

  • Hi This is linear systems and digital signal processing. Please answer this question with clean h...

    Hi This is linear systems and digital signal processing. Please answer this question with clean handwriting. Label the answer n 29 Question 11 of 23 s Moving to another question will save this response. Question 11 1 points Save Answer Consider a fiter characterized by the following impulse response: h-[1.2,-1, 1] Which of the following statements are true about thie the sampling frequency in this application is 8192 Hz. (You may use MATLAB to help you analyze this filter) 1....

  • b) When designing a FIR filters, the impulse response of the ideal low-pass filter is usually modified by multiplying i...

    b) When designing a FIR filters, the impulse response of the ideal low-pass filter is usually modified by multiplying it by a windowing function such as the Hamming window which is defined, for an odd number N of samples, by: (2n)-(N-I)-ns(N-1) N-12 wlnl 0.54 + 0.46 cos i What are the advantages of windowing with this function compared 2 with a standard rectangular window? ii) Design a 10th Order Hamming windowed FIR low-pass filter with cut- off frequency at 1000...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT