You are on page 1of 5

ECE 313

Quiz 2F
Time and Frequency Domain Signal

Name: Micoh EspinaBSECE-4

Convert the given time domain signal to frequency domain.

Equation of the time domain signal. (5 points)

𝑥; −𝜋 ≤ 𝑥 ≤ 0
𝑓(𝑥) = { }
−𝑥 + 𝜋; 0 ≤ 𝑥 ≤ 𝜋

Frequency domain signals using Fourier series. Show solution and fill in the blanks. (10 points)

a0 0 a1 4⁄ b1 2
𝜋
a2 0 b2 0
a3 4⁄ b3 2⁄
9𝜋 3
a4 0 b4 0
a5 4⁄ b5 2⁄
25𝜋 5
a6 0 b6 0
a7 4⁄ b7 2⁄
49𝜋 7
a8 0 b8 0
Solutions here: an 𝑎𝑛 = 4⁄ 2 ; 𝑖𝑓 𝑛 bn 𝑏𝑛 = 2⁄𝑛 ; 𝑖𝑓 𝑛
𝑥 𝜋
= 𝑜𝑑𝑑 𝑛𝑢𝑚𝑏𝑒𝑟𝑠 = 𝑜𝑑𝑑 𝑛𝑢𝑚𝑏𝑒𝑟𝑠

𝑎𝑛 = 0 ; 𝑖𝑓 𝑛 𝑏𝑛 = 0 ; 𝑖𝑓 𝑛
= 𝑒𝑣𝑒𝑛 𝑛𝑢𝑚𝑏𝑒𝑟𝑠 = 𝑒𝑣𝑒𝑛 𝑛𝑢𝑚𝑏𝑒𝑟𝑠
Graph (with family name) of frequency domain using MATLAB. (5 points)

MATLAB source code: (5 points)

Simulation using Desmos.com


Equation: (5 points)

Waveform: (5 points)
Simulation using Falstad.com
Equation: (5 points)
4 4 4 4 4 4
𝑓(𝑥) = cos 𝑥 + cos 3𝑥 + cos 5𝑥 + cos 7𝑥 + cos 9𝑥 + cos 11𝑥
𝜋 9𝜋 25𝜋 49𝜋 81𝜋 121𝜋
2 2 2 2 2
+ 2 sin 𝑥 + sin 3𝑥 + sin 5𝑥 + sin 7𝑥 + sin 9𝑥 + sin 11𝑥 + ⋯
3 5 7 9 11

Let x = 1 kHz
Schematic diagram and waveform (with family name): (5 points)

You might also like