20092ee102_1_S09-102-HW-6-Sols

20092ee102_1_S09-102-HW-6-Sols - HWfié f (9 r m D 64‘)...

Info iconThis preview shows pages 1–10. 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
Background image of page 7

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

View Full DocumentRight Arrow Icon
Background image of page 8
Background image of page 9

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

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

Unformatted text preview: HWfié f (9 r m D 64‘) (If what mnfolt u [=k 99/) I13 L‘s— iv [:1 'm g S N o :\ § g m S 3 Ugh (If Sf‘n mf mime : gmi(qw{w+h)t + $;a(m—n)£)o/?f H O #4 M) = (Jim £01H7 £58 + (AH/74%)“?1Qm + dflafizaa7finé) I LR) :' {'ééz '” 3°10! “$42) + azaéfli’ (1”) +62; O'OOI+4’ H Madcqu gang» 593 5‘4: H‘P'I’.” 421/ £kULt—L 2.iii) t: [-1 :0.0001 :1]; fhat = 1.662ISqn(2) - 0.901*sqrt(3f2)*t+0.226*(t."2 - 1f3)*sq rt(45x8); f = epo): MSE = 1i10000'sum(abs(f - fhat).*‘\2) plot(fhat,t,'—r') hold on plot{f,t,'——k') |egend(['fhat'],[‘f']) MSE: 0.001441202579160 | 3.iv) t = [0:0.1:100000]; fhat = 219‘exp(-2*t)-10f27*(1 -4*t).*exp(-2*t); f = t."exp(-t); MSE = 1i10‘sum(abs(f - fhat).’\2) p|0t(fhat,‘-r') hold on plol(f,’--k') Iegend({'fhat'],['f‘]) (only plotted for t = 0 to 30) MSE = 0.111315821653712 "—‘I T—" I — that — * f [ _l_ I 15 20 25 30 Arl-krnchf't- got“. (Sabin-K) ______,__.___..........._............. S: :53) F = -t ,‘ufit , 5.3] 01t ’Jfl, 4.iv) SOLUTION A % {hat defined 1 = {4,1} t = [-1:0.0001:1]; that = {-1+i*pi)*(1+exp(1}):‘(1+pi"2)*exp(-i*pi*t)+1 .7184- (-1 -i*pi}*(1 +exp(1))l(‘l+pi"2)*exp(i*pi*t) %f defined t = {-1.0} t = [-1 :0.0001 :0]; f = exp(-t); % make vectors equal Iength by zeropaddingf f: [fzeros(1,|ength(fhal)-Ienglh(f))] MSE = 1f10000'0.5*sum(abs(1-fhat}.’\2) MSE: 6.216153281051627 SOLUTION B “3613131 defined i ={-1,1] i = [-1:0.0001:1]; fhal = {1+i*pi)*(—1-exp(1))l(1+pi"2)*exp(-i*pi*t)+1318+ (-i*pi+1)*(~1-exp(‘|)):’(1+pi"2)*exp(i*pi*t} c3’ofde1‘ir‘ued t z {-1.0} t = [-1:0.0001:0]; f= exp(-t): % make vectors equal Iength by zeropadding f f = [f zeros(1 ,length(fhat)-length(f})] MSE = 1!10000'0.5*5um(abs(f - fhat).A2) MSE = 1.596899913096349 ...
View Full Document

Page1 / 10

20092ee102_1_S09-102-HW-6-Sols - HWfié f (9 r m D 64‘)...

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

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