Professional Documents
Culture Documents
EE123 Discussion Section 2: Giulia Fanti, Based On Notes by Frank Ong
EE123 Discussion Section 2: Giulia Fanti, Based On Notes by Frank Ong
Problems
Homework
Problems
General
Homework
Problems
Question 1
Let L1 and L2 be two separate systems and L be the cascaded
system:
L
L1
L2
Homework
Problems
Solution 1
Homework
Problems
The system could be an LTI system, but does not have to be.
Homework
Problems
The system could be an LTI system, but does not have to be.
Homework
Problems
Hence, H is not an TI
[n1]+[n+1]
2
6= y1 [n 1].
Homework
Problems
Question 3
What is the Discrete-Time Fourier transform X (e j ) of the below
signal x[n]:
Homework
Problems
Solution 3
x[n] = r [n] r [n], where r [n] is the periodic sinc
Homework
Problems
Solution 3
Normalized magnitude response for X (e j ) and R(e j )
Homework
Problems
Solution 3
These signals are known as splines. In the continuous domain, the
generalizations are called B-splines, which converges to a Gaussian
in the limit (Unser 1999). They are often useful in interpolation.
Homework
Problems
y [n] = cos( n)
4
in response to the input signal x,
x[n] = e jn/4
Select the strongest true assertion from the list below:
I
Homework
Problems
y [n] = cos( n)
4
in response to the input signal x,
x[n] = e jn/4
Select the strongest true assertion from the list below:
I
Homework
Problems
Linear?
Causal?
Shift-Invariant?
Stable?
Homework
Problems
Linear? Y
Causal? Y
Shift-Invariant? N
Stable? Y
Homework
Problems
Linear?
Causal?
Shift-Invariant?
Stable?
Homework
Problems
Linear? X
Causal? X
Shift-Invariant? X
Stable? X
Consider the system with impulse response
h[n] = (0.5)n+1 u[n + 1]
linear, not causal, shift-invariant and stable
Consider the system that outputs (0.5)n u[n] regardless of input
not linear, causal, shift-invariant and stable
Consider the system that outputs (0.5)n u[n] when the input is
[n 1] and otherwise
not linear, not causal, not shift-invariant and not stable
Homework
Problems
Homework Problem 7
Homework
Homework
Problems
Problems
Homework
Homework Problem
Problem 77
Example:
Example: Linear
Linear regression.
regression. We
We observe
observe 5 data points x[k] from
kk==2,2,1,
.
.
.
,
1,
2.
1, . . . , 1, 2.
We
Wewant
want to
to fit
fit aa line
line xx =
= mk
mk +
+ bb by
by minimizing the squared
distance
distance between
between the
the line
line and
and the
the data
data points
-2 -1
Frank Ong
Ong
Giulia Fanti, based on notes by Frank
EE123 Discussion
Discussion Section
Section 2
EE123
2
Homework
Problems
Homework Problem 7
min kK
b,m
b
m
x[2]
x[1]
x[0]
x[1]
x[2]
2
k2
Homework
Problems
Homework Problem 7
To solve for b and m, take the derivative with respect to b and
m and set it to zero:
K (K
b
m
x[2]
x[1]
x[0]
x[1]
x[2]
) = 0
b
m
= (K K )
x[2]
x[1]
x[0]
x[1]
x[2]
Homework
Problems
Homework Problem 7