Starting from:

$30

EE384-Lab3 Solved

Problem 1: Discrete Fourier Transform (DFT) and Fast Fourier Transform (FFT) The DFT of a sequence x(n) with length N is defined:

  

Where ๐‘Š = ๐‘’−๐‘—(2๐œ‹/๐‘)  

The inverse DFT is given by:

  

The Fast Fourier transform (FFT) is an efficient algorithm to compute the DFT.

a)       Use ‘fft’ function to calculate the Fourier Transform of a sequence, x = [1, 2, 3, 4, 5, 6, 7, 8].

b)      Use ‘ifft’ function to calculate the inverse Fourier Transform of the result you get in (a).

c)       Re-do (a) and (b) using your own DFT and inverse DFT functions.

 

Problem 2: Analyze the signal in the frequency domain 

It is difficult to identify the frequency components by looking at the original signal in the time domain.

We can analyze the signal in the frequency domain using Matlab tools or FFT.

Let the sampling frequency fs be 8 kHz, and the time t varies from 0 to 1 second.

a)       Create and plot the signal ๐‘ฆ(๐‘ก) = sin(2๐œ‹๐‘“1๐‘ก) + sin(2๐œ‹๐‘“2๐‘ก) where ๐‘“1 = 697 ๐ป๐‘ง and ๐‘“2 = 1209 ๐ป๐‘ง. Properly zoom-in so that we can see the sine wave pattern in your plot.

b)      Plot the frequency spectrum of ๐‘ฆ(๐‘ก) using Matlab’s spectral estimation tool. Put markers in the plot to show the main frequency components of the signal.

c)       Re-do (b) using Matlab’s sptool.

d)      Re-do (b) using FFT. Properly label your axis.

 

More products