Explore BrainMass

Discrete time Fourier transform of sequence and Matlab plot

Please see the attached file for full description.

Calculate by hand the X(omega), DTFT of the sequence x[n]=[1 1 1 1 0 0 0 0] for n=0:7, zero else.

Using Matlab, plot the real and imaginary components of your result for X(omega) for omega=0:0.01:2*pi,
one plot for the real, one part for the imaginary.
On the same plots, use the Matlab fft and stem commands to plot the samples of X(omega) calculated by the DFT/FFT. Your code will look something like this.
hold on;
x=[1 1 1 1 0 0 0 0];
m=(0:7)*2*pi/8; % 8's the length of the sequence x[n]
and again in a different figure for the imaginary part.
The stems should fall right on the curve you plot. If not, check your result in question 2.


Solution Summary

The solution shows step-by-step calculation of discrete time Fourier transform of a sequence. It also includes the Matlab codes and plots implementation.