Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Matlab dft help

  1. Nov 1, 2012 #1
    Hello I am trying to calculate the n-point DFT of a signal using fft where n=512 and plot it in matlab. The signal is a separate file that I have read into matlab. I am able read and plot the first 512 values of the signal but when I try to get the dft of the signal and plot it the outcome does not look correct. How could I go about achieving this?
  2. jcsd
  3. Dec 19, 2012 #2
    I could probably help but your question does not have enough information for me to figure out what the issue is. Is the issue with the FFT or with the plotting? Do you need help creating the frequency vector with which to plot the fft of your signal? What does not look correct?
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook