Explore BrainMass
Share

Explore BrainMass

    Discrete time Fourier transform of sequence and Matlab plot

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    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.
    n=0:0.01:2*pi;
    plot(n,real(SOME_EQUATION_FOR_X(omega)));
    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]
    stem(m,real(fft(x)));
    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.

    © BrainMass Inc. brainmass.com October 9, 2019, 6:07 pm ad1c9bdddf
    https://brainmass.com/math/fourier-analysis/discrete-time-fourier-transform-sequence-matlab-plot-79022

    Attachments

    Solution Preview

    Please see the attached file for detailed solution and Matlab plots.

    Calculate by hand the X(Ω), 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(Ω) for
    Ω=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(Ω) calculated by ...

    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.

    $2.19