ECE102 hw4
ECE102 hw4
(a) (18 points) Find the Fourier series coefficients for each of the following periodic signals:
i. f (t) = cos(3πt) + 12 sin(4πt)
ii. f (t) is a periodic signal with period T = 1 s, where one period of the signal is
defined as e−2t for 0 < t < 1 s, as shown below.
(b) (10 points) Suppose you have two periodic signals x(t) and y(t), of periods T1 and T2
respectively. Let xk and yk be the Fourier series coefficients of x(t) and y(t).
i. If T1 = T2 , express the Fourier series coefficients of z(t) = x(t) + y(t) in terms of
xk and yk .
ii. If T1 = 2T2 , express the Fourier series coefficients of w(t) = x(t) + y(t) in terms of
xk and yk .
Determine the period of each of the following signals, then express its Fourier series in terms
of ck :
1
(a) g(t) = f (t) + 1
(b) g(t) = f (−t)
(c) g(t) = f (at), where a is positive real number
(a) (5 points) Show that f (t) = cos(ω0 t) is not an eigenfunction of an LTI system.
(b) (5 points) Show that f (t) = t is not an eigenfunction of an LTI system.
The system takes as input x(t), it first multiplies the input with et , then sends it through an
LTI system. The output of the LTI system gets multiplied by e−t to form the output y(t).
(b) Use the definition of convolution to show that (1) can be equivalently written as:
Z ∞
y(t) = h0 (τ )x(t − τ )dτ (2)
−∞
2
function fn = myfs(Dn,omega0,t)
%
% fn = myfs(Dn,omega0,t)
% % Evaluates the truncated Fourier Series at times t
%
% Dn -- vector of Fourier series coefficients
%
% omega0 -- fundamental frequency
% t -- vector of times for evaluation
%
% fn -- truncated Fourier series evaluated at t
The output of the m-file should be
fN (t) = ΣN
n=−N Dn e
jω0 nt
The length of the vector Dn should be 2N + 1. You will need to calculate N from the
length of Dn.
(b) (7 points) Task 2 Verify the output of your routine by checking the Fourier series
coefficients for Problem 1-a-ii. Try for N = 10, N = 50 and N = 100. Use the
MATLAB command ”subplot” to put multiple plots on a page. As usual, include both
codes and plots.
(c) (7 points) Task 3 Repeat the steps of Task 2 for the case of the signal from Problem
1-a-iii.