Explore BrainMass

Explore BrainMass

    Plot Magnitude of a Sequence in Matlab

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

    Consider a sequence x[n]={1,-1,1,-1}.
    Please help in determining how to use the function fft to find the DFT coefficients X[k] of x[n] in Matlab. Also, how would you plot the magnitude of X[k] in Matlab?

    © BrainMass Inc. brainmass.com October 9, 2019, 8:31 pm ad1c9bdddf

    Solution Preview

    The DFT in Matlab is done by function fft (see a reference page from Matlab Help in the attached Word file).

    The Fourier transform is ...

    Solution Summary

    This solution explains how to determine the use of the function fft to find the DFT coefficients.