PlotFourierSpectrum

PlotFourierSpectrum plots the Fourier spectrum of a given data set.

Al momento, stai seguendo questo contributo

PlotFourierSpectrum is a set of Matlab code that will plot the Fourier spectrum of an array of data, given a sampling frequency. It is based on the discrete Fourier transform. It allows you to experiment with changing the data and sampling frequencies, without having to worry each time about the arcane details of how to plot the spectrum.
The plot that is produced extends over both positive and negative frequencies. Various plotting options can be specified, such as plotting the absolute values of the Fourier coefficients, plotting their real and imaginary parts separately, or plotting the full complex values of these coefficients.
The package also contains a "how to use" pdf file, and several functions that can be used more generally in calculations involving the discrete Fourier transform.
This release is a minor update. I have made the plots in the usage pdf slightly better, and have simplified the code in a few places. The one "major" change is to two comments in Dft.m and DftInverse.m. These two comments referred in passing to Matlab's "dot" function and used that function in a (commented) code snippet, without my realising that "dot" complex-conjugates its first argument. So I've changed those comments to omit mention of "dot".

Cita come

Don Koks (2026). PlotFourierSpectrum (https://it.mathworks.com/matlabcentral/fileexchange/63646-plotfourierspectrum), MATLAB Central File Exchange. Recuperato .

Categorie

Scopri di più su Fourier Analysis and Filtering in Help Center e MATLAB Answers

Informazioni generali

Compatibilità della release di MATLAB

  • Compatibile con qualsiasi release

Compatibilità della piattaforma

  • Windows
  • macOS
  • Linux
Versione Pubblicato Note della release Action
1.0.1

See the main description.

1.0.0.0

This is a very minor update to fix a problem with the figure placement when using Microsoft Windows. (The original code was developed on unix, and works fine on unix and Macs. It will continue to work fine with this update.)
An update that doesn't change the code, but attempts to get the formatting right on the usage notes, since the Mathworks site has reformatted what I submitted.