Beruflich Dokumente
Kultur Dokumente
EE153
Midterm I
Name and ID:
Last:
First:
Student ID #:
10/05/2010
If you need more space, use the back pages
Write your initials on the right side of both front and back pages
You cannot use calculator
Draw box around the answers
Turn off or set to silent mode of cell phone
2
1. [25 pts]
It is given that
( )
( )
( ) ( ) ( )
1
2
1 2
cos(10 )
sin(10 )
x t t
x t t
y t x t x t
t
t
=
=
= +
Find and plot the magnitude and phase response of
( ) { }
F y t
( ) { } ( ) ( )
( ) { } ( ) ( )
( ) { } ( )
( ) ( )
( ) ( ) ( ) ( )
( ) ( )
( ) ( )
1
2
1 2
1 1
5 5
2 2
1 1
5 5
2 2
1 1 1 1
5 5 5 5
2 2 2 2
1 1 1 1
5 5
2 2 2 2
1 1 1 1
5 5
2 2 2
F x t f f
F x t f f
j j
F y t Y f
X f X f
f f f f
j j
f f
j j
f j f
o o
o o
o o o o
o o
o o
= + +
= +
=
= +
(
= + + + +
(
( (
= + + +
( (
(
= + + +
(
2
j
(
(
( )
2 2
1 1 1
5Hz
2 2 2
Y f
| | | |
= + =
| |
\ . \ .
5Hz
4
5Hz
4
t
t
+ Z
Z
3
4
t
u Z
5
5
f
2.
The eq
Find a
on the
The fir
( ) y t =
quations for
and plot the c
e equation (1
rst step is to
0 t = <
the convolu
y
y
convolution
), then you w
converting
1
ution are defi
( )
t
t
=
=
}
( ) y t
t
=
=
}
based on the
will not get a
from ( ) h t
3 t
( ) t t +
ined as
( ) (
h x t t
( ) ( x h t t
e equation (2
any credits)
( ) h t t , th
t
3 +
)
d t t
) d t t
2). (if you do
hen the new
3
( ) h t t
0
o the convol
function ( h
[25 pt
(
(
lution based
) t t is
4
ts]
(1)
(2)
5
-1 1 t s s
( )
( )
( ) ( ) ( ) ( )
( )
( ) ( )
1 1
2
1
2
2 2
2
2
3 2 2 2 6
2 6
2 6 1 2 1 6 1
6 2 5
4 5
t t
t
t d t d
t
t t t t
t t t
t t
t t t t
t t t
+ = +
= +
= + +
= +
= + +
} }
1 2 t < s
( )
( )
( ) ( ) ( ) ( )
( )
( ) ( )
1 1
1 1
1
2
1
2
2
3 2 2 2 6
2 6
1 2 6 1 2 1 6 1
2 7 2 5
4 12
t d t d
t
t t
t t
t
t t t t
t t t
+ = +
= +
= + +
= +
= +
} }
2 4 t < s
( )
( )
( ) ( ) ( ) ( )
( )
( ) ( )
1 1
3 3
1
2
3
2
2
2 2
3 2 2 2 6
2 6
1 2 6 3 2 3 6 3
2 7 6 9 2 6 6 18
t t
t
t d t d
t
t t t t t
t t t t t t
t t t t
t t t
+ = +
= +
= + +
= + + + +
} }
( ) ( )
2
2
2 7 6 9
8 16
t t t
t t
= + +
= +
6
clc; clear all;
t1 = -1:0.001:1;
x1 = -t1.^2+4*t1+5;
t2 = 1:0.001:2;
x2 = -4*t2+12;
t3 = 2:0.001:4;
x3 = t3.^2-8*t3+16;
t = [t1 t2 t3];
y = [x1 x2 x3];
plot(t,y)
axis([-2 5 -1 9])
xx = [-2 5 0 0]
yy = [0 0 -1 9]
hold on
stairs(xx,yy,'r')
hold off
-2 -1 0 1 2 3 4 5
-1
0
1
2
3
4
5
6
7
8
9
7
3. [25 pts]
In the first lab, you saw two sine function multiplications.
( ) ( ) ( ) sin 30 sin 40 y t t t t t =
a) Expand the equation,
( ) y t , using Eulers formula.
b) Based on the part (a), the signal is sampled with the sampling rate of | |
35
s
f = , plot
the magnitude response from 0 to 2t
c) Based on the part (a), the signal is sampled with the sampling rate of | |
34
s
f = , plot
the magnitude response from to t t
d) Write the observation based on (b) and (c).
a)
( ) ( ) ( )
( )
( )
30 30 40 40
70 70 10 10
70 70 10 10
70 70 10
sin 30 sin 40
1 1
2 2
1
4
1
4
1 1 1
2 2 2
j t j t j t j t
j t j t j t j t
j t j t j t j t
j t j t j t
y t t t
e e e e
j j
e e e e
e e e e
e e e e
t t t t
t t t t
t t t t
t t t
t t
=
( ( =
( = +
(
= + +
(
= + +
(
( )
( ) ( )
( ) ( ) ( ) ( )
10
1
cos 70 cos 10
2
1
cos 2 35 cos 2 5
2
j t
t t
t t
t
t t
t t
(
`
(
)
= (
( =
8
b)
2
35
s
f
t
2
17.5
s
f
t
1
35 8.75
4
=
0
1
2 35 17.5
4
=
8.75
17.5
2
7
t
2
2
7
t t
(
(
c)
0
2
17
s
f
t
2
17
s
f
t
1
17
t
5
17
t
1
34 8.5
4
=
d)
After sampling process, the frequency in the part(b) turned out to be 5 Hz and DC(direct
current) and in the part (c), the frequencies are 5 and 1 Hz. As you can see from the figures
above, obviously aliasing happened.
9
4. [25 pts]
| | | | | |
| | | | | | | | | |
1
2
1 2 4
1 2 2 3 2 4
h n n n
h n n n n n
o o
o o o o
=
= + +
Find
a)
| | | | ( ) | | ( )
1 2
1 2 1 y n h n h n = - +
where " " - is the convolution
b) Find the frequency response,
( ) Y O
a)
i.
| | ( ) ( )
| | | |
1
1 1 1 2 1 4
2 3
h n n n
n n
o o
o o
= ( (
= +
ii.
| | ( ) ( ) ( ) ( ) ( )
| | | | | | | |
2
2 1 2 1 1 2 1 2 1 3 2 1 4
2 2 1 4 2 4 3
h n n n n n
n n n n
o o o o
o o o o
+ = + + + + + + ( ( ( (
= + + + + +
10
| | | | ( ) | | | | | | | | ( )
| | | | | | | | | | | | | |
2 3 2 2 1 4 2 4 3
4 3 4 2 2 1 6 8 1 4 2 4 3
n n n n n n
n n n n n n n
o o o o o o
o o o o o o o
+ - + + + + +
= + + + + +
b)
( ) | |
| | | | | | | | | | | | | | ( )
( ) ( ) ( ) 3 2 1 2 3
4 3 4 2 2 1 6 8 1 4 2 4 3
4 4 2 6 8 4 4
j n
n
j n
n
j j j j j j
Y y n e
n n n n n n n e
e e e e e e
o o o o o o o
O
=
O
=
O O O O O O
O =
= + + + + +
= + +
-4 -3 -2 -1 0 1 2 3 4
-6
-4
-2
0
2
4
6
8
11
clc; clear all;
x = [-3 -2 -1 0 1 2 3];
y = [4 -4 2 -6 8 -4 -4];
stem(x,y,'^')
axis([-4 4 -7 9])
OM = -10:0.001:10;
Y = 4*exp(j*3*OM)-4*exp(j*2*OM)+6-2*exp(-j*OM)-4*exp(-j*OM)-
4*exp(j*3*OM);
Y_abs = abs(Y);
subplot(1,2,1), plot(OM,Y_abs)
title('|Y|'); xlabel('f')
% figure;
subplot(1,2,2),plot(OM,angle(Y))
title('phase'); xlabel('f')
-10 -5 0 5 10
0
5
10
15
|Y|
f
-10 -5 0 5 10
-4
-3
-2
-1
0
1
2
3
4
phase
f