$30
ECE102 Homework #2
Signals & Systems
100 points total.
1. (22 points) Elementary signals.
(a) (9 points) Consider the signal x(t) shown below. Sketch the following:
x(t)
1
-1 1 2 3 4 t
2
i. y(t) = x(t) [1 − u(t − 1) + u(t − 2)]
ii. y(t) = R t
−∞[δ(τ + 1) − δ(τ − 1) + δ(τ − 2)]x(τ )dτ
iii. y(t) = x(t) + r(t + 1) − u(t) − 3r(t) + 3r(t − 1) − r(t − 3)
1
(b) (9 points) Evaluate these integrals:
i. R ∞
−∞ f(t + 1)δ(t + 1)dt
ii. R ∞
t
e
−2τu(τ − 1)dτ
iii. R ∞
0
f(t)(δ(t − 1) + δ(t + 1))dt
(c) (4 points) Let b be a positive constant. Show the following property for the delta
function:
δ(bt) = 1
b
δ(t)
Hint: what function is “delta-like”?
2
2. (23 points) Expression for signals.
(a) (15 points) Write the following signals as a combination (sums or products) of unit
triangles ∆(t) and unit rectangles rect(t).
(b) (8 points) Express each of the signals shown below as sums of scaled and time shifted
unit-step functions.
0 1 2 3 4
b(i)
0
0.5
1
1.5
2
2.5
3
y
y = x(t)
0 2 4 6 8
b(ii)
-2
-1
0
1
2
y
y = x(t)
3
3. (30 points) System properties.
(a) (20 points) A system with input x(t) and output y(t) can be time-invariant, causal
or stable. Determine which of these properties hold for each of the following systems.
Explain your answer.
i. y(t) = |x(t)| + x(t
2
)
ii. y(t) = R t+T
t−T
x(λ)dλ, where T is positive and constant.
iii. y(t) = (t + 1) R t
−∞ x(λ)dλ
iv. y(t) = 1 + e
x(t)
v. y(t) = 1
1+x2(t)
(b) (6 points) Consider the following three systems:
S1 : w(t) = x(t/2)
S2 : z(t) = Z t
−∞
w(τ )dτ
S3 : y(t) = S3(z(t))
The three systems are connected in series as illustrated here:
Choose the third system S3, such that overall system is equivalent to the following
system:
y(t) = Z t−1
−∞
x(τ )dτ
(c) (4 points) In part (b), you saw an example of three systems connected in series. In
general, systems can be interconnected in series or in parallel to form what we call
cascaded systems. The figure below shows the difference between a series cascade and
a parallel cascade. Note that parts (b) and (c) are unrelated.
i. (2 points) Show that the series cascade of any two time-invariant systems is also
time-invariant.
ii. (2 points) Show that the parallel cascade of any two time-invariant systems is also
time-invariant.
iii. (Optional) Can you think of two time-variant systems, whose series cascade is
time-invariant? Can you think of two time-variant systems, whose parallel
cascade is time-invariant?
4. (10 points) Power and energy of complex signals
4
(a) (5 points) Is x(t) = Aejωt + Be−jωt a power or energy signal? A and B are both real
numbers, not necessarily equal. If it is an energy signal, compute its energy. If it is
a power signal, compute its power. (Hint: Use the fact that the square magnitude of
a complex number v is: |v|
2 = v
∗v, where v
∗
is the complex conjugate of the complex
number v.)
(b) (5 points) Is x(t) = e
−(1+jω1+jω2)tu(t + 1) an energy signal or power signal? Again, if
it is an energy signal, compute its energy. If it is a power signal, compute its power.
5. (15 points) MATLAB
(a) (5 points) Task 1
A complex sinusoid is denoted:
y(t) = e
(σ+jω)t
First compute a vector representing time from 0 to 10 seconds in about 500 steps (You
can use linspace). Use this vector to compute a complex sinusoid with a period of 2
seconds, and a decay rate that reduces the signal level at 10 seconds to 1/3 its original
value. What σ and ω did you choose? If your complex exponential is y, plot:
>> plot(y);
What is MATLAB doing here?
(b) (5 points) Task 2
Use the real() and imag() MATLAB functions to extract the real and imaginary parts
of the complex exponential, and plot them as a function of time (plot them separately,
you can use subplot for this task). This should look more reasonable. Label your axes,
and check that your signal has the required period and decay rate.
(c) (5 points) Task 3
Use the abs() and angle() functions to plot the magnitude and phase angle of the
complex exponential (plot them in the same figure). Scale the angle() plot by dividing
it by 2*pi so that it fits well on the same plot as the abs() plot (i.e. plot the angle in
cycles, instead of radians, the function angle(x) returns the angle in radians).
5