Question

Problem No. P3: Type 2 Linear Phase FIR fitler A Type 2 linear phase FIR filter is given by h[n]-[-4, 1,-1, -2, 5, 6, 6, 5, -

0 0
Add a comment Improve this question Transcribed image text
Answer #1

function [Hr,w,b,L]=Hr_Type2(h)
M=length(h);
L=M/2;
b=2*[h(1:1:L)];
n=L:-1:1;n=n-0.5;
w=linspace(0,2*pi,1000);
for i=1:length(w)
Hr(i)=cos(w(i)*n)*b';
end
plot(w,abs(20*log10(Hr)));title('Magnitude Response');xlabel('Frequency (rad/sample)');ylabel('Magnitude (dB)');
sys=tf(h,[1 0],1,'variable','z^-1');
figure;pzplot(sys);

Now call the function from command window as [Hr,w,b,L]=Hr_Type2([-4 1 -1 -2 5 6 6 5 -2 -1 1 -4]); and you will get two plots

Magnitude Response 45 40 35 30 25 15 10 Frequency (rad/sample)

Pole-Zero Map 0.5 2 0.5 0.5 1.5 0.5 Real Axis

Add a comment
Know the answer?
Add Answer to:
Problem No. P3: Type 2 Linear Phase FIR fitler A Type 2 linear phase FIR filter is given by h[n]-[-4, 1,-1, -2, 5, 6, 6, 5, -2, -1, 1,-4) Determine the amplitude response Hr(w) and the location of...
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...

  • 1. It is desired to design a linear phase, length N FIR filter via the window method. The desired...

    1. It is desired to design a linear phase, length N FIR filter via the window method. The desired amplitude response is given by the function A(u), i.e Show how to calculate the filter coefficients h(n), n 0,1,..., N-1 from A(u) if the window function is wn 1. It is desired to design a linear phase, length N FIR filter via the window method. The desired amplitude response is given by the function A(u), i.e Show how to calculate the...

  • A fourth order, Type I, linear phase, FIR filter, h[n], is to be designed using the window method. The ideal impulse response of the filter is defined as: hd[n] = sin([pi/4]*[n - N/2]) / ([n - N/2]*pi) , where N is the filter order and 'pi' denotes the ma

    A fourth order, Type I, linear phase, FIR filter, h[n], is to be designed using the window method. The ideal impulse response of the filter is defined as:hd[n] = sin([pi/4]*[n - N/2]) / ([n - N/2]*pi) ,where N is the filter order and 'pi' denotes the mathematical (irrational) constant number 3.14159.... Given that a stopband attenuation of 50 dB is required,a) Find and sketch h[n]b) Determine the transfer function of the resulting digital filterc) Draw the filter block diagramd) Determine...

  • Question 3 a) A linear-phase, Finite Impulse Response (FIR) digital filter with the transfer func...

    Thanks Question 3 a) A linear-phase, Finite Impulse Response (FIR) digital filter with the transfer function H() shown as follow is desired: (4 marks) (3 marks) iii) Based on (a)(ii), determine the truncated impulse response ha(n) for a 5-tap FIR filter by i) Sketch the spectrum of the transfer function H (w). ii) Determine the impulse response h(n) from H() using rectangular window method. (6 marks) iv) Calculate all the filter coefficient of ha (n). (5 marks) Question 3 a)...

  • :) A causal, linear-phase, real-valued FIR filter has zeros at z = 0.5, z = 1, and z-ej2, a) Supp...

    Digital Signal Processing :) A causal, linear-phase, real-valued FIR filter has zeros at z = 0.5, z = 1, and z-ej2, a) Suppose the gain factor for this filter is po 1. Specify the impulse response of this filter assuming the length of the filter needs to be as small as possible. b) What is the type of this FIR filter? A causal, linear-phase, real-valued FIR filter has zeros at z - 0.25e 3 and z - 2 a Assuming...

  • Determine the coefficients b0, b1, b2, of a generalized linear-phase FIR filter 1. (GLP FIR Filters]...

    Determine the coefficients b0, b1, b2, of a generalized linear-phase FIR filter 1. (GLP FIR Filters] Determine the coefficients bo, bi, b2, of a generalized linear-phase FIR filter | d[n] = box[n] + b n - 1]+b22[n – 2] such that (i) it rejects any frequency component at wo = /3; and (ii) its frequency response is normalized so that Ha(0) = 1. Compute and sketch the magnitude and phase response of the filter to check that it satisfies the...

  • Problem 2 Consider an FIR filter with the following impulse response: h [n] [1 -2 3]...

    Problem 2 Consider an FIR filter with the following impulse response: h [n] [1 -2 3] (a) What is the gain at 2 0.67 rads/sample? (b) What is the filter output if the input is x(n] - [1 2 3 2 1? Problem 2: Consider an FIR filter with the following impulse response: h(n] [1-2 3 (a) What is the gain at 2 0.67 rads/sample? (b) What is the filter output if the input is x [n] 1 2 3...

  • DSP Lab Exercise 9 Given below are the Impulse Response h(n), of the four main types of FIR Digit...

    DSP Lab Exercise 9 Given below are the Impulse Response h(n), of the four main types of FIR Digital filters. Use appropriate MATLAB expressions to find: a) System Response (H(z) b) Pole-zero diagram c) Amplitude Response d) Phase Response 1. FIR Low-Pass Digital Filter ,n= 0.1 |[d(n) + δ(n-I))-1 h(n) 0, otherwise 2. FIR High-Pass Digital Filter 0, otherwise 3. FIR Band-Pass Digital Filter 0, otherwise 4. FIR Band-Stop Digital Filter , n = 0,2 0, otherwise Note: Your final...

  • a) The transfer function of an ideal low-pass filter is and its impulse response is where...

    a) The transfer function of an ideal low-pass filter is and its impulse response is where oc is the cut-off frequency i) Is hLP[n] a finite impulse response (FIR) filter or an infinite impulse response filter (IIR)? Explain your answer ii Is hLP[n] a causal or a non-causal filter? Explain your answer iii) If ae-0. IT, plot the magnitude responses for the following impulse responses b) i) Let the five impulse response samples of a causal FIR filter be given...

  • Given the constraints: 1) frequency response: H(ejw) = 0 at w = 0 and w =...

    Given the constraints: 1) frequency response: H(ejw) = 0 at w = 0 and w = . 2) What are the impulse response coefficients h[0],h[1],h[2] that is length 3 causal and finite impulse response filter . Sketch phase and magnitude of frequency response. We were unable to transcribe this image1 H(eju)|dw = 2 27 J-

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