ee 341 fall 2005 ee 341 - homework 11 due november 9, 2005 fftrison/ee341/hw/hw11_soln.pdf · ee...

Post on 03-Jul-2020

3 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

EE 341 Fall 2005

EE 341 - Homework 11

Due November 9, 2005

For problems which require MATLAB, please include a MATLAB m-file which shows how youmade your plots. Problems from the text tell you to use the M-file dft. You can use the built-inMATLAB function fft instead.

1. Problem 8.1 (a) (b) (c) (e)

2. Problem 8.2 (a) (b) (c) (f)

3. Problem 8.4 (b) (e)

4. Problem 8.5. When using the Final Value Theorem, make sure the final value exists.

5. Problem 8.6

6. Problem 8.10 (a) (b) (c) (d) (e)

7. Problem 8.12 (a) (c) (e) (f). You do not need to compute the partial frations by hand; usethe MATLAB residue function if you prefer.

1

hw11.m Page 1% EE 341 Homework # 11

% Problem 8.11

% (a)figure(1)clfsubplot(221)b=[1 2];a=[1 7 12];t=0:0.001:2;% Analytical solutionx = -exp(-3*t)+2*exp(-4*t);plot(t,x)gridhold on% Numerical solutionxn=impulse(b,a,t);plot(t,xn,'r');legend('Analytical','Numerical')title('Problem 8.11 (a)')

% (c)subplot(222)b=[2 -9 -35];a=[1 4 2];t=0:0.001:10;% Analytical solution[r,p,k]=residue(b,a);x = r(1)*exp(p(1)*t) + r(2)*exp(p(2)*t);plot(t,x)gridhold on% Numerical solutionxn=impulse(b,a,t);plot(t,xn,'r');legend('Analytical','Numerical')title('Problem 8.11 (c)')text(2,-11,'2 \delta(t) does not')text(2,-13,'appear on graph')% (e)subplot(223)b=[1 0 1];a=[1 0 18 0 81 0];t=0:0.001:10;% Analytical solution[r,p,k]=residue(b,a);x = 2*abs(r(1))*cos(imag(p(1))*t+angle(r(1))) + ... 2*abs(r(2))*t.*cos(imag(p(2))*t+angle(r(2))) + r(5);plot(t,x)gridhold on% Numerical solutionxn=impulse(b,a,t);plot(t,xn,'r');legend('Analytical','Numerical')title('Problem 8.11 (e)')print -dpsc2 p8_11.ps

0 0.5 1 1.5 2−0.2

0

0.2

0.4

0.6

0.8

1

1.2Problem 8.11 (a)

AnalyticalNumerical

0 2 4 6 8 10−20

−15

−10

−5

0Problem 8.11 (c)

2 δ(t) does not

appear on graph

AnalyticalNumerical

0 2 4 6 8 10−1.5

−1

−0.5

0

0.5

1

1.5Problem 8.11 (e)

AnalyticalNumerical

top related