Measuring the 'purity' of a sine wave using FFT (Matlab)

Click For Summary
SUMMARY

This discussion focuses on measuring the purity of sine waves using Fast Fourier Transform (FFT) in Matlab. The FFT function is recommended for analyzing the frequency spectrum, while the Welch method is suggested for estimating the Power Spectral Density (PSD) if the appropriate toolbox is available. The discussion emphasizes that deviations from purity typically appear as additional frequency components, particularly harmonics, rather than a wider fundamental peak. Total Harmonic Distortion (THD) is highlighted as a key metric for assessing spectral purity.

PREREQUISITES
  • Familiarity with Matlab FFT function
  • Understanding of Power Spectral Density (PSD) estimation
  • Knowledge of Total Harmonic Distortion (THD)
  • Basic concepts of sine wave generation and analysis
NEXT STEPS
  • Explore Matlab's FFT function documentation for practical examples
  • Learn about the Welch method for PSD estimation in Matlab
  • Research techniques for calculating Total Harmonic Distortion (THD)
  • Investigate methods for identifying and analyzing harmonics in frequency spectra
USEFUL FOR

Researchers, engineers, and students involved in signal processing, particularly those analyzing the purity of sine waves in experimental settings.

SK1.618
Messages
8
Reaction score
0
I have a range of sine waves I have obtained in an experiment.

I want to put a measure on the purity of these sine waves - how well the reproduce a theoretical sine wave.

Is there anyway I can analyse the FFT of the sine waves in Matlab and put a measure on the purity of the sine wave (e.g. by measuring the FWHM of the peak at the frequency of the sine wave)?

Thank you
 
Physics news on Phys.org
Yes, you could use the FFT function (see the examples in the documentation) or -if you have the right toolbox- estimate the PSD using e.g. Welch method (I recommend the latter if possible).

That said, if you have a range of sine-wave any lack of "purity" would not usually manifest itself as a wider fundamental peak in the spectrum; you are more likely to see other frequency components in the spectra; in particular harmonics which is why THD is such a popular measure of spectral purity.
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 13 ·
Replies
13
Views
2K
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
6K
  • · Replies 8 ·
Replies
8
Views
3K
Replies
6
Views
5K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 78 ·
3
Replies
78
Views
7K
  • · Replies 1 ·
Replies
1
Views
2K