Docsity

Fourier Transform-Digital Signal Processing-Assignment Solution, Exercises of Digital Signal Processing

Toggle sidebar
bg1
• Stable;
• Non-Causal – output depends on future input;
• Linear – T(ax[n] + by[n]) = aT(x[n]) + bT(y[n]);
• Time Variant;
• Not Memoryless;
P2.4
As ]1[2]2[
8
1
]1[
4
3
][ āˆ’=āˆ’+āˆ’āˆ’ nxnynyny , the Fourier transform is
jwjwjwjwjwjwjw eeXeeYeeYeY āˆ’āˆ’āˆ’ =+āˆ’ )(2)(
8
1
)(
4
3
)( 2
When 1)(][][ =⇒= jw
eXnnx
Ī“
, thus








āˆ’
āˆ’
āˆ’
=
+āˆ’
=āˆ’āˆ’āˆ’āˆ’
āˆ’
jwjwjwjw
jw
jw
eeee
e
eY )4/1(1
1
)2/1(1
1
8
)8/1()4/3(1
2
)( 2
][
4
1
2
1
8][ nuny
nn













āˆ’






=
P2.24
As h[n] = [1 1 1 1 –2 –2] for n from 0 to 5 and x[n] = u[n-4], the system response is:
y[n] = x[n] * h[n] = [0 0 0 0 1 2 3 4 2 0 …..]; The sketch is shown as follows:
HW#2: P2.5; P2.18; P2.29 (a), (c), (e)
P2.5
(a) The roots for polynomial 0651 21 =+āˆ’ āˆ’āˆ’ zz are 2 and 3, so the homogeneous
response for the system is:
nn AAny 32][ 21 +=
pf3
pf4
pf5
pf8
pf9
pfa
pfd

Partial preview of the text

Download Fourier Transform-Digital Signal Processing-Assignment Solution and more Exercises Digital Signal Processing in PDF only on Docsity!

  • Stable;
  • Non-Causal – output depends on future input;
  • Linear – T(ax[n] + by[n]) = aT(x[n]) + bT(y[n]);
  • Time Variant;
  • Not Memoryless;

P2.

As [ 2 ] 2 [ 1 ] 8

[ 1 ]

y [ n ]āˆ’ yn āˆ’ + yn āˆ’ = xn āˆ’ , the Fourier transform is

jw jw jw jw jw jw jw Y e Y e e Y e e X e e

āˆ’ āˆ’ āˆ’ āˆ’ + ( ) = 2 ( ) 8

2

When [ ]= [ ]⇒ ( )= 1

jw

xn Ī“ n X e , thus

āˆ’ āˆ’ āˆ’ āˆ’

āˆ’

jw jw jw jw

jw jw

e e e e

e Y e 1 ( 1 / 4 )

2

[ ]

y [ n ] 8 un

n n

P2.

As h[n] = [1 1 1 1 –2 –2] for n from 0 to 5 and x[n] = u[n-4], the system response is:

y[n] = x[n] * h[n] = [0 0 0 0 1 2 3 4 2 0 …..]; The sketch is shown as follows:

HW#2: P2.5; P2.18; P2.29 (a), (c), (e)

P2.

(a) The roots for polynomial 1 5 6 0

1 2 āˆ’ + =

āˆ’ āˆ’ z z are 2 and 3, so the homogeneous

response for the system is:

n n y [ n ]= A 1 2 + A 23

(b) As y [ n ]āˆ’ 5 y [ n āˆ’ 1 ]+ 6 y [ n āˆ’ 2 ]= 2 x [ n āˆ’ 1 ] and x [ n ]= Ī“[ n ], the impulse response of

the system is:

[ ] 2 ( 3 2 ) [ ]

2

hn u n

e e e e

e H e

n n

jw jw jw jw

jw jw

āˆ’ āˆ’ āˆ’ āˆ’

āˆ’

(c) As y [ n ]āˆ’ 5 y [ n āˆ’ 1 ]+ 6 y [ n āˆ’ 2 ]= 2 x [ n āˆ’ 1 ]and x [ n ]= u [ n ], the step response of the

system is:

[ ] ( 3 2 1 ) [ ]

1 2

1 2 1 1 1 1

1

yn u n

z z z z z z z

z Y z H z X z

n n ⇒ = āˆ’ +

āˆ’ āˆ’ āˆ’ āˆ’ āˆ’ āˆ’

āˆ’

P2.

(a) h [ n ] ( 1 / 2 ) u [ n ]

n

Causal, the output of the system does not depend on future input;

(b) h [ n ]= ( 1 / 2 ) u [ n āˆ’ 1 ]

n

Causal, the output of the system does not depend on future input;

(c)

n h [ n ]=( 1 / 2 )

Non-Causal, the output of the system depends on future input;

(d) h [ n ]= u [ n + 2 ]āˆ’ u [ n āˆ’ 2 ]

Non-Causal, the output of the system depends on future input;

(e) h [ n ]= ( 1 / 3 ) u [ n ]+ 3 u [āˆ’ n āˆ’ 1 ]

n n

Non-Causal, the output of the system depends on future input;

P2.

As x[n] = [1 1 1 1 1 1/2] for n from –1 to 4,

(a) x[n-2] = [1 1 1 1 1 1/2] for n from 1 to 6; The sketch is:

x [ n ] cos( n ) u [ n ] ( 1 ) u [ n ]

n = Ļ€ = āˆ’

) [ ]

[ ] ( un

j h n

n

) [ ] ( 1 ) (

[ ] [ ]* [ ] [ ][ ] (

1

0

j

j

j uk un k

j yn hn xn hk xn k

n n

k

n

k

k nk n k

k

āˆž

= āˆ’āˆž =

āˆ’

āˆž

=āˆ’āˆž

āˆ‘ āˆ‘ āˆ‘

Since 1 / 2

lim

1

j j

j

n

n (^) +

ā†’āˆž

The steady state response to the excitation x [ n ] ( 1 ) u [ n ]

n = āˆ’ is

cos( )

j

n

j

n

Ļ€

P2.

Given a periodic impulse train (^) āˆ‘

āˆž

=āˆ’āˆž

k

x [ n ] Ī“ [ n kN ], we can write its Fourier transform as

āˆ‘

āˆž

=āˆ’āˆž

k

j k N N

X e ( 2 / )

(Refer to Signal and Systems , 2 nd edition by A.V. Oppenheim and A.S. Willsky, Page 371 for its proof)

In problem, 2.41, N =16, so its Fourier transform is

āˆ‘

āˆž

=āˆ’āˆž

k

j X e ( 2 k / 16 ) 16

Let ( )

j ω Y e denotes the output of the system, then

j ω j ω j ω Y e = X e He (3)

If | ω |< 3 Ļ€/ 8 ,

3 ( )

j ω j ω H e e

āˆ’

[ ( ) ( / 8 ) ( / 8 )]

āˆ’

āˆž

=āˆ’āˆž

āˆ’ āˆ‘

j j

k

j e k e e (4)

If | ω |≄ 3 Ļ€/ 8 , ( )= 0

j ω H e , thus ( )= 0

j ω Y e , (5)

So [ ( ) ( / 8 ) ( / 8 )] 16

3 / 8 3 / 8

j j āˆ’ j Y e e e (6)

Take the inverse Fourier transform, we can get

cos( 8

( 1 2 cos 16

[ ]

3 / 8 / 8 3 / 8 / 8 ( 3 ) / 8 ( 3 ) / 8

āˆ’ āˆ’ āˆ’ āˆ’ āˆ’

n n

y n e e e e e e

j n j n n n

π π π π π π

Note: Take a look at (3), ( )

j ω H e is band limited, ( )

j ω X e is infinite pulse train. If we

multiply them together, we can only consider those pulses falling into the band

( āˆ’ 3 Ļ€/ 8 , 3 Ļ€ / 8 ). The rest pulses are cancelled due to the multiplication with 0. There are

three pulses falling into the band ( ) 16

āˆ’ , so we get

P3.

(a)

1 1 1 2 1 1 12 1 1 2 1 3

2

āˆ’ āˆ’ āˆ’ āˆ’ āˆ’ āˆ’ āˆ’ āˆ’

z

D

z

C

z

B

z

A

z z z

X z

X (z)’s poles are z=-1/2, 2, 3, if it is stable, the ROC is | z |∈( 1 / 2 , 2 )

1 / (^211)

1 2

āˆ’ āˆ’

=āˆ’ āˆ’ āˆ’

āˆ’ z z z z

A X z z

1 2 1

2

1 =āˆ’

  • āˆ’

āˆ’ āˆ’

=

āˆ’ z z

z z

C X z z

1 2 1

3

1

  • āˆ’

āˆ’ āˆ’

=

āˆ’ z z

z z

D X z z

Also, Let 0

1

āˆ’ z at both sides,

X z A B C D z

āˆ’ (^) =

(^10)

Thus,

1225

B = 1 āˆ’ A āˆ’ C āˆ’ D =

1 1 1 2 1 1 12 1 1 3

āˆ’ āˆ’ āˆ’ āˆ’ āˆ’ āˆ’ āˆ’ āˆ’

z z z z z z z

X z

Since the ROC is | z |∈( 1 / 2 , 2 ),

3 [ 1 ]

2 [ 1 ]

) [ ]

) [ 1 ]

x [ n ]= n + āˆ’ un + + āˆ’ un + u āˆ’ n āˆ’ āˆ’ u āˆ’ n āˆ’

n n n n

Note: To get the inverse Z-Transform of second-order term or multiple order term, we

can use the differentiation property

dz

dX z nx n z

[ ]↔ āˆ’ (Refer to page122 of textbook for

its proof)

E.g. right side sequence 1 1

[ ] [ ]

āˆ’ āˆ’

az

x n a un

n (ROC: | z |>| a |)

1 2

1 1

]

[ ] [

āˆ’

āˆ’ āˆ’

az

az

dz

az

d

na n z

n , So 1 2

1 1

( 1 )

[ ]

āˆ’

āˆ’ āˆ’

āˆ’

az

z na n

n

(c)

1

2

3

[ ] ( )

āˆ’ āˆ’

z

z z z

z z xn X z

[ 1 ]

[ ]

[ ] 1 [ ] 2 [ ]

[ 1 ]

2 [ ]

[ ]

[ ]

1 [ ]

1 1

1 4 3

3 2

1 2 1

1

1 3 3

2 2

1 1

1

1

1 1

1

^ āˆ’

  • āˆ’

āˆ’ āˆ’ āˆ’ āˆ’ āˆ’ āˆ’

āˆ’

āˆ’ āˆ’ āˆ’ āˆ’

āˆ’

āˆ’

āˆ’ āˆ’

āˆ’

u n a

un a

xn x n x n

un a

z x n a

z a

z a

z z a

az

un a

un a a

z x n a

z a

z z a a a

z a

az

z a z a

az X z

n n

n

n n

L

L

  • Fourier Transform exists when the ROC including unit circle, which means

a < 1.

P3.

(a) As the ROC of X (z) is |z| > 3/4, and the ROC of Y (z) is |z| > 2/3, the ROC of H (z)

should be |z| > 2/3 ;

(b) As the ROC of X (z) is |z| < 1/3, and the ROC of Y (z) is 1/6 < |z| < 1/3, the ROC of

H (z) should be |z| > 1/6 ;

P4.

As x (^) c ( t )= sin[ 2 π( 100 t )]and T = 1/400 sec,

[ ] (^)  

[ ] ( ) sin 2 ( 100 ) sin

n x n xc nT nT

P4.

As x (^) c ( t )= cos[ 4000 Ļ€ t ]and  

[ ] cos

n π

x n ,

(a) Let 12 , 000

x [ n ]= xc ( nT )⇒ T =

(b) T is not unique, for example, 12 , 000

T =

HW#5: P4.5; P4.7; P5.2; P5.

P4.

(a) From Nyquist Sampling theorem, to avoid aliasing in the C/D converter, the sampling

frequency Hz Hz T

m s

s

4 2 2 * 5000 10

Ī© = ≄ Ī© = = , so Ts s

4 10

āˆ’ ≤

(b) Hz

f s

cutoff cutoff^10625 2

4 Ī© = Ī© = =

(c) Hz kHz

f s

cutoff cutoff^21012501.^25 2

4 Ī© = Ī© = Ɨ = =

Note: The relation between digital frequency f and analog frequency Ī© is

f

s

where Ī© (^) s is the sampling frequency, f is in radians.

P4.

(a)

xc ( t )= sc ( t )+ α s c ( t āˆ’ Ļ„ d )

j d Xc j Sc j e

Ļ„

āˆ’Ī© Ī© = Ī© +

Consider sampling, x [ n ]= xc ( nT ), in frequency domain ( refer to Eq4.19 in textbook, P147),

āˆž

=āˆ’āˆž

Ī© = Ī©āˆ’ k

c

jT

T

k X j T

Xe

/

āˆž

=āˆ’āˆž

āˆ’

āˆž

=āˆ’āˆž

āˆ’Ī©

āˆž

=āˆ’āˆž

Ī©

k

c

j T

k

c

j

k

c

j jT

T

k

T

e S j T

T

k e S j T T

k X j T

Xe Xe

d

d

ω Ļ€ α

Ļ€ α

Ļ€

ωτ

ω Ļ„

(b)

j j d T H e e

/ ( ) 1

ω ωτ α

āˆ’ = +

(c)

τ π

Ļ„ Ļ€ α Ļ€

Ļ€

α ω Ļ€

ω Ļ€

α ω Ļ€

ω Ļ€

Ļ€

Ļ€

Ļ€

Ļ€

ω ω Ļ„

Ļ€

Ļ€

ωτ ω

Ļ€

Ļ€

ω ω

sin( ) sin[( / ) ]

[ ]

/ ( / )

n T

n T

n

n

hn He e d e e d e d e d

d

d

j jn j d T jn jn j n d T

āˆ’ āˆ’

āˆ’ āˆ’

āˆ’

āˆ’

āˆ’

if Ļ„ (^) d = T , [ ] [ 1 ]

( 1 )

sin( ) sin[( 1 ) ] [ ] = + āˆ’ āˆ’

= + n n n

n

n

n hn Ī“ αΓ Ļ€

Ļ€ α Ļ€

Ļ€

if Ļ„ (^) d = T / 2 ,

Ļ€

Ļ€ Ī“ α Ļ€

Ļ€ α Ļ€

Ļ€

sin[( 1 / 2 ) ] [ ] ( 1 )

sin( ) sin[( 1 / 2 ) ] [ ] āˆ’

n

n n n

n

n

n hn

P5.

[ ] [ 1 ] [ ]

y [ n āˆ’ 1 ]āˆ’ yn + yn + = xn

1 z Y z āˆ’ Y z + zY z = X z

āˆ’

P5.

(a)

As the poles of H(z) are 0.9, -0.9, ROC includes the unit circle, the system is stable.

(b)

1

()

1 1

1 1

()

1 1

1 1 1

1 1

1 1 1

1

H zH z

z z

z z

j z j z

z z z

j z j z

z z z H z

ap

H z Hapz

āˆ’ āˆ’

āˆ’ āˆ’

āˆ’ āˆ’

āˆ’ āˆ’ āˆ’

āˆ’ āˆ’

āˆ’ āˆ’ āˆ’

P5.

Generalized Linear Phase – GLP;

Linear Phase – LP;

(a) As

jw h n n n n H jw we

āˆ’ [ ]= 2 Ī“ [ ]+Ī“[ āˆ’ 1 ]+ 2 Ī“[ āˆ’ 2 ]⇒ ( )=( 1 + 4 cos ) ,

A ( jw )= 1 + 4 cos w and α = 1 , β= 0 , it is a GLP, but not LP as A ( jw )is not always

nonnegative for all w;

(b) It is not a GLP or LP as it is not a symmetric filter;

(c) As

jw h n n n n H jw we

āˆ’ [ ]= Ī“ [ ]+ 3 Ī“[ āˆ’ 1 ]+ Ī“[ āˆ’ 2 ]⇒ ( )=( 3 + 2 cos ) ,

A ( jw )= 3 + 2 cos w and α = 1 , β= 0 , it is a GLP and also LP as A ( jw )is always

nonnegative for all w;

(d) As

( / 2 ) [ ] [ ] [ 1 ] ( ) 2 cos( / 2 )

jw h n n n H jw w e

āˆ’ =Ī“ +Ī“ āˆ’ ⇒ = ,

A ( jw )= 2 cos( w / 2 ) and α = 1 / 2 ,β= 0 , it is a GLP, but not LP as A ( jw )is not always

nonnegative for all w;

(e) As

( / 2 ) [ ] [ ] [ 2 ] ( ) 2 sin

Ļ€ Ī“ Ī“

āˆ’ āˆ’ = āˆ’ āˆ’ ⇒ =

jw h n n n H jw we ,

A ( jw )= 2 sin w and α = 1 , β= Ļ€/ 2 , it is a GLP, but not LP as A ( jw )is not always

nonnegative for all w;

HW#7: P6.7; P6.8; P6.11; P6.25; P7.

P6.

The difference equation is: [ ]

4

[ 2 ] [ 2 ]

y [ n ]āˆ’ yn āˆ’ = xn āˆ’ āˆ’ xn

Z-Transform: ( )

4

2 2 Y z āˆ’ Y zz = X zz āˆ’ X z

āˆ’ āˆ’

Transfer function:

2

2

āˆ’

āˆ’

z

z

X z

Y z H z

P6.

y [ n ]āˆ’ 2 y [ n āˆ’ 2 ]= 3 x [ n āˆ’ 1 ]+ x [ n āˆ’ 2 ]

P6.

1

1 2 3

1

1 1 1

āˆ’

āˆ’ āˆ’ āˆ’

āˆ’

āˆ’ āˆ’ āˆ’

z

z z z

z

z z z H z

(a)

āˆ’ 1 z

āˆ’ 1 z

x [ n ] y [ n ]

āˆ’ 1 z

āˆ’ 1 z

y [ n ]

āˆ’ 1 z 8

Cutoff: ω c = 0. 3 Ļ€

The peak approximate error 20 log 10 Ī“<āˆ’ 26. 02 dB

Among the windows in Table7.1 (Page 471), Hanning, Hamming, Blackman can be used

(b)

Hanning: M

0. 1 = , M = 80 , L = M + 1 = 81

Hamming: M

0. 1 = , M = 80 , L = M + 1 = 81

Blackman: M

0. 1 = , M = 120 , L = M + 1 = 121

Note that the estimation is not accurate. We can use MATLAB to find the minimum of

filter order to meet the requirements.