EC256 Lab Task3
EC256 Lab Task3
X = WN x
−1 1 ∗
X = WN x= W x
N N
∗
The N × N DFT matrix WN is a unitary matrix i.e. WN WN = NIN
1 1 1 ··· 1
1 W 1
N W 2
N ··· WNN−1
WN = .. .. ..
..
. . . .
2(N−1) N(N−1)
1 WNN−1 WN ··· WN
j 2π
where WN = e N is called the twiddle factor.
(d) Compute the IDFT of X obtained in (b) and compare the result with
sequence x.
V. Prakash Singh, PhD
Department of Electronics and Communication Engineering, National Institute of Technology Andhra Pradesh, Tadepalligudem, Andhra Pradesh India
Lab 3 : Spectral Analysis
Problem 2: Spectral Analysis Using DFT
Spectral analysis studies the frequency spectrum contained in discrete,
uniformly sampled data. The discrete Fourier transform (dft) is a tool
that reveals frequency components of a signal by representing it in
frequency space.
The list in the next slide shows the basic relationships among the
various quantities involved in any spectral analysis
V. Prakash Singh, PhD
Department of Electronics and Communication Engineering, National Institute of Technology Andhra Pradesh, Tadepalligudem, Andhra Pradesh India
Lab 3 : Spectral Analysis
Problem 2: Spectral Analysis Using DFT
(b) Create the C Major chord for duration 2 seconds by adding three
tones together of the notes C (261.63 Hz), E (329.63 Hz), and G
(392.00 Hz) with the same amplitudes A = 1. Listen to the result
using soundsc(to avoid clipping at ±1). Also, plot this signal.
(c) Find and sketch the power spectrum of the signal. Use appropriate
time and frequency ranges as in previous slide. Are you able to
identify each frequency present in the signal.
V. Prakash Singh, PhD
Department of Electronics and Communication Engineering, National Institute of Technology Andhra Pradesh, Tadepalligudem, Andhra Pradesh India
Lab 3 : Spectral Analysis
Problem 2: Spectral Analysis Using DFT
(a) Generate a signal for duration 1 seconds by adding two tones x1 and
x2 together of frequency 1 kHz and 5 KHz respectively. Add a
Gaussian noise with mean 0 and variance 0.01 to get a signal y . Use
sampling frequency of 44100 Hz. Compute and sketch the
log-magnitude spectrum 20 log(|Yk |) vs frequency in Hz.
(d) Generate two signals x1 (t) and x2 (t) for duration 1 seconds as
x1 (t) = sin(2π5000t)
x2 (t) = x1 (t)e j2π2000t