hw8soln - r "593 ’4‘“: “6"! t...

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

View Full Document Right Arrow Icon
Background image of page 1

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

View Full DocumentRight Arrow Icon
Background image of page 2
Background image of page 3

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

View Full DocumentRight Arrow Icon
Background image of page 4
Background image of page 5

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

View Full DocumentRight Arrow Icon
Background image of page 6
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: r "593 ’4‘“: “6"! t “2.103 ml —Q‘ #160 w .‘Swigs .5 7-. ’5;ka dam 3' 3 e a $49 M I c‘ M. , 1 fl! doll-loam” Maw 7 w‘ W w\ \W \Swtéo 'Q ciao MQ’HWWZ- S a ’ .a wt fixma \ 60 Q WM“ A' S e. e. ciao ’59} 'W' .. . W glued 4» S 5“ d. ciao 50L -Q‘wxw Ina-WM (dyn- h + wk w,@—-u)¢a. W— + ?m‘ ma. Limb-fl 3:; em a Macaw 1,3011 0 (ma 0 F0 5518’ 5 a 3 3.16%? o Mm :2: to 1 “MM 0 0 3.15% c: Mch o Mm ‘ WM 0 3, 7w: 0 hams” 0 y Pakfiw came; 0 Mom 0 376‘?! I 62% O a L 0 657% 0 {~an o 336 fl ‘ 453M C: ‘- ~ - OM ' ‘ 2 h2g5 W8 ouqsu :5 d: K 0.94% eta-5M hél @318 .5 .922: o rates-g 'C:\ECE\MATLAB6p5\work\p24..m Page 1 .0“ M- Novembez 9, 2006 - - . ' 5:20:55 PM %‘p24‘.m_ I H=[l 0 O O]; _ %samples E=[l l; l exp(-j*pi/2); l exp(-j*pi); 1 exp(“j*3*pi/2)] hl:( inv(E'*E)*E' )*H' h1=real<hl) % remove tiny imag a 0115 ('2 32,3 h2=pinv(E)*H' ‘ h2=real(h2) % remove tiny imag a 0,3,5 Hopi—‘5 figure(l) ' " a0:2*h2(1) ‘ ‘ \ \ \ \ .acgg HH=aO*cos(2*{pi/2)?’<[0:999J/1000); _ w w- __ H o _ E E plot([0:999]/1000,HH) ‘ Q " "Q ;9 v“ C, q hold on 7 " r' - r plot([—1‘.1 1..1],.[0 01} M3 - ' plot([0 0] , [-2 2]) plot([1'/4 1/4],[—2 21) at 9+.» "1 plot([l/2 1/2],[—2 2]) .1... H ‘5 z [A (lb L5 E) ‘ Lo. 9 L1 ‘0 M plot([3/4-3/4]f[-2 2]) grid . plot(0,l,'o') . \ » lot(l/4,0,'o') \ glot(l/2,0,'o') %¢ 0 ‘ ‘ ‘ ‘_ 3; (it git ’3‘ 3 plot(3/4,0.'o'> 'o .701 1 Q‘ -1 -q A‘ A "/11"ny hold off ‘. ' I , axis([-ul 1H1 —u7 1H11) - .-\ *4: - . . (Ewe) ES _ HHH=abs(erqz([a25 H25],l,4,'whole')) _ sum( (HHH—H' ) u A2) —-—=9- b'lS'a‘bO _HHH=abs(freqz([q26 ..25],1,4,'whole')) '. ' ' ‘ sum((HHH-H').."2) ._—-> cam“ . _ Mb M4 \At t,“ mm a HHH=abs(fr-eqz([..24 ..25],1,4,'whc$le') z: k d'l ‘Q’ a sum((HHH-H‘).,"2) ..=; (“501,14 ht ‘/q “A. A1 *1 a HHH2abs(freqz([..25 .‘26],l,4,'whole'}) sum((HHH—H')."‘2) ‘-—=7 £3!st V HHH=abs(freqz([n25 “26],l,4,rwhole')) ' 1 sum((HHH-—H')."‘2) easy-9’1 - :2 ’4 ems w M . xr'” m Waaxd‘bW—p WI M9 Jug-J— hcmé 2M... EACH abl’w‘b M ‘ “f; 0%, W’mi‘T-dx ...
View Full Document

Page1 / 6

hw8soln - r &amp;quot;593 ’4‘“: “6&amp;quot;! t...

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

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