MATLAB Calculating and Plotting the n-Point DFT of a Signal in MATLAB

AI Thread Summary
To calculate the n-point Discrete Fourier Transform (DFT) of a signal using FFT in MATLAB, ensure that the signal is properly loaded and that you are using the correct parameters for the FFT function. The user is able to read and plot the first 512 values of the signal but encounters issues with the DFT output. Key areas to investigate include whether the problem lies with the FFT computation or the plotting process itself. Additionally, creating an appropriate frequency vector for the FFT plot is crucial for accurate representation. Clarifying what specifically appears incorrect in the output will aid in diagnosing the issue effectively.
jorgmartnez
Messages
1
Reaction score
0
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?
 
Physics news on Phys.org
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?
 

Similar threads

Replies
10
Views
3K
Replies
9
Views
5K
Replies
1
Views
2K
Replies
5
Views
3K
Replies
32
Views
4K
Replies
10
Views
3K
Back
Top