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

Click For Summary
SUMMARY

The discussion focuses on calculating the n-point Discrete Fourier Transform (DFT) of a signal using the Fast Fourier Transform (FFT) function in MATLAB, specifically with n set to 512. The user successfully reads and plots the first 512 values of the signal but encounters issues with the DFT output and its visualization. Key points include the necessity of creating an appropriate frequency vector for accurate plotting and the importance of clarifying whether the problem lies with the FFT computation or the plotting process.

PREREQUISITES
  • Familiarity with MATLAB programming environment
  • Understanding of Fast Fourier Transform (FFT) and its application
  • Knowledge of signal processing concepts
  • Ability to create and manipulate frequency vectors in MATLAB
NEXT STEPS
  • Learn how to use MATLAB's fft function effectively for signal analysis
  • Research methods for generating frequency vectors in MATLAB
  • Explore techniques for visualizing FFT results in MATLAB
  • Study common pitfalls in DFT calculations and their solutions
USEFUL FOR

This discussion is beneficial for signal processing engineers, MATLAB users, and anyone involved in analyzing and visualizing frequency components of signals using FFT.

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 ·
Replies
10
Views
4K
  • · Replies 9 ·
Replies
9
Views
5K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 32 ·
2
Replies
32
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 10 ·
Replies
10
Views
3K
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K