Docsity

Digital Signal Processing - Problems with Solutions | ENGR 361, Study notes of Digital Signal Processing

Toggle sidebar
bg1
ENGR 361: Digital Signal Processing Midterm 1
Friday, September 21
th
, 2007
Open books, notes, computer
Name: SOLUTION
1) (10 points) Determine if the discrete-time signal is periodic. If it is, find its period.
a) A continuous signal
(
)
1 1
( ) sin 2
x t f t
π
=
, where
1
500
f= Hz, is sampled at the
sampling frequency
10000
s
F=Hz.
(
)
1
[ ]
2
sin
2 500
sin
10000
2
sin 20
a
s
x n x nT
f n
F
n
π
π
π
=
=
=
=
To find the period
2
2 1
20
20
n
k k
N
π
π
=⇒=
=
b)
2
5 3
[ ] 0.763cos 0.324 cos
3 5
n n
x n
π π
= −
.
1
2
5
2 5
3
6
3
2 3
5
10
30
nk k
N
nk k
N
N
π
π
ππ
=⇒=
=
=⇒=
=
=
2) (10 points) Determine and show whether or not the system is 1) causal, 2) stable, 3)
time-invariant, 4) linear, and 5) memoryless.
a)
( )
3
[ ] [ ]
y n x n
=
•
Obviously, it is causal, stable, memoryless, and time invariant.
pf3
pf4
pf5

Partial preview of the text

Download Digital Signal Processing - Problems with Solutions | ENGR 361 and more Study notes Digital Signal Processing in PDF only on Docsity!

ENGR 361: Digital Signal Processing Midterm 1

Friday, September 21

th , 2007

Open books, notes, computer

Name: SOLUTION

  1. (10 points) Determine if the discrete-time signal is periodic. If it is, find its period.

a) A continuous signal x 1 ( ) t = sin 2( π f t 1 ), where

1 f = 500 Hz, is sampled at the

sampling frequency 10000 s F = Hz.

1

[ ]

sin

sin 10000

sin 20

a

s

x n x nT

f n

F

n

n

To find the period

2 2 1 20

20

n k k

N

b) (^2)

[ ] 0.763cos 0.324 cos 3 5

n n x n

1

2

n k k

N

n k k

N

N

π π

π π

  1. (10 points) Determine and show whether or not the system is 1) causal, 2) stable, 3)

time-invariant, 4) linear, and 5) memoryless.

a) ( )

3 y n [ ] = x n [ ]

  • Obviously, it is causal, stable, memoryless, and time invariant.
  • Not linear since (^) ( ) ( ) ( )

3 3 3 ax n 1 [ ] + bx 2 (^) [ ] n ≠ ax n 1 [ ] + bx 2 [ ] n

b)

2

0

[ ] [ ]

k

y n α x n k

=

= + (^) ∑ − where α is a non-constant.

  • Obviously, it is stable, causal, and time invariant but not memoryless.
  • Not linear since 2 2 2 2

1 2 1 2 0 0 0 0

[ ] [ ] [ ] [ ]

k k k k

α a x n k α b x n k α a x n k b x n k = = = =

  • (^) ∑ − + + (^) ∑ − ≠ + (^) ∑ − + (^) ∑ −

3) For LTI system, we are given a signal x n [ ] = δ[ n + 2] − δ [ ] n + δ[ n − 2],

a) If the system h n [ ] can be described by the following differential equation

y n [ ] = x n [ ] − 2 [ x n −1] − 3 [ x n − 2] + x n [ − 3], draw the discrete-time signal of

h n [ ] with appropriate indexing.

h n [ ] = δ [ ] n − 2 [δ n − 1] − 3 [δ n − 2] + δ[ n −3]

-2 -1 0 1 2 3 4 5

0

1

2

3

4

h[n]

index

b) Find the output y n [ ] and draw the figure with appropriate indexing.

[ ] [ ]

[ ]

[ ] [ ] [ ]

y n = x n ∗ h n

-6 -4 -2 0 2 4 6

0

2

4

6

y[n]

index

clear all;clc;close all;

B = [1 2 0 1]; A = [1 -0.5 0.25]; x1 = zeros(1,200);x1(1) = 1; x2 = ones(1,200);

y1 = filter(B,A,x1); y2 = filter(B,A,x2); subplot(211);stem(y1,'.'); subplot(212);stem(y2,'.');

0 20 40 60 80 100 120 140 160 180 200

0

2

4

6

0 20 40 60 80 100 120 140 160 180 200

0

1

2

3

  1. You are given a causal LTI (unknown) system. If the input to the system is

[ ] [ ] 2 [ 1]

n n x n u n u n

, the system generates the output and its z-transform is

1 1

1 1 1

z z Y z

z z z

− −

− − −

 −^  −^ +

.

a) Determine X z ( ), Y z ( ) , and H z ( ).

1 1 1

1 (^1 1 )

1 1

1 1 1

1 1 1 1

1 1 1 1 1

1

1

z z z

X z z z (^) z z

z z Y z

z z z

z z z z H z

z z z z^ z

z

z

− − −

− − (^) − −

− −

− − −

− − − −

− − − −^ −

−

−

 −^  −^ +

 −^  −

= ×

− − + −^ +

 −^  +

1 3 z

−

b) Draw ROC for X, Y, and H.

c) Find the impulse response of the system h n [ ]. Is the system stable?

ROC does not include a unit circle, so it is not stable.