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