Fall 2004 Q4 - H(Z)= 0.0802 0.2933 1 Z 0.4020 2 Z 0.2933 3 Z 0.0802 4 Z-We can get the magnitude at w= 0.3 0.7 2.2 are equal to 1.0945 0.8783 0.008

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
4 a) Programme 4-a N=4; M=N/2; W=[.3 .7 2.2]'; D=[1 1 0]'; WW=W*[0:M]; P=cos(WW); d=P\D; k=0:M-1; h1=[d(M+1-k)/2]'; h=[h1 d(1) fliplr(h1)]; [H,w]=freqz(h,1); subplot(2,1,1); plot(w,abs(H)); subplot(2,1,2); plot(w,angle(H)); Transfer function: H(Z)=-0.1197+0.4117 1 Z - + 0.4110 2 Z - + 0.4117 3 Z - -0.1197 4 Z - 0 0.5 1 1.5 2 2.5 3 3.5 0 0.5 1 1.5 0 0.5 1 1.5 2 2.5 3 3.5 -4 -2 0 2 4 magnitude response phase response We can get the magnitude at w= 0.3 and 0.7 is equal to 1. They match exactly with ( ) j d H e ϖ . The magnitude at w=2.2 is 0.0031>0.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
4-b) Program: N=4; M=N/2; W=[.3 .7 2 2.9]'; D=[1 1 0 0]'; WW=W*[0:M]; P=cos(WW); d=P\D; k=0:M-1; h1=[d(M+1-k)/2]'; h=[h1 d(1) fliplr(h1)]; [H,w]=freqz(h,1); subplot(2,1,1); plot(w,abs(H)); subplot(2,1,2); plot(w,angle(H)); 0 0.5 1 1.5 2 2.5 3 3.5 0 0.5 1 1.5 0 0.5 1 1.5 2 2.5 3 3.5 -4 -2 0 2 4 magnitude response phase response Transfer function:
Background image of page 2
Background image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: H(Z)= 0.0802+0.2933 1 Z-+ 0.4020 2 Z-+ 0.2933 3 Z-+0.0802 4 Z-We can get the magnitude at w= 0.3, 0.7, 2.2 are equal to 1.0945, 0.8783, 0.008, not exactly matching the ( ) j d H e ϖ . 4-c) Program: f=[0 1/pi 1.6/pi 1]; d=[1 1 0 0]; h=firls(4,f,d); [H,w]=freqz(h,1); subplot(2,1,1); plot(w,abs(H)); subplot(2,1,2); plot(w,angle(H)); 0.5 1 1.5 2 2.5 3 3.5 0.5 1 1.5 0.5 1 1.5 2 2.5 3 3.5-4-2 2 4 magnitude response phase response Transfer function: H(Z)= 0.0851+0.2927 1 Z-+ 0.3975 2 Z-+ 0.2927 3 Z-+0.0851 4 Z-We can get the magnitude at w= 0.3, 0.7, 2.2 are equal to 1.0991, 0.8745, 0.0012, not exactly matching the ( ) j d H e ϖ ....
View Full Document

This note was uploaded on 02/24/2010 for the course ESE 337 taught by Professor Chi-tsongchen during the Fall '10 term at SUNY Stony Brook.

Page1 / 3

Fall 2004 Q4 - H(Z)= 0.0802 0.2933 1 Z 0.4020 2 Z 0.2933 3 Z 0.0802 4 Z-We can get the magnitude at w= 0.3 0.7 2.2 are equal to 1.0945 0.8783 0.008

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online