Discrete Fourier Transform GUI

This script aims to change an earthquake accelerogram, from time domain to frequency domain by DFT
851 Downloads
Updated 14 Jul 2016

View License

Frequency Domain Representation, F(w), gives amplitude of the real and imaginary parts of the sinusoid at each frequency. By knowing the solution in the frequency domain, you can get the solution for any signal in the time domain. On this basis, the script obtains the signal in the the amplitude related to each frequency within the considered range of values.
The input data is the signal we want to study, defined on a discrete set of points (N sampled values associated with a sampling interval, ∆), which is introduced as an ASCII file loaded in the GUI.

The calculation of the Discrete Fourier Transform is performed applying the internal function fft(signal,N). In order to increase the performance of fft when the length of the signal is not a power of 2 the script uses the internal functions nextpow2.

The user is given the possibility to either represent the amplitude associated with each frequency or the real or imaginary terms. The default value for the abscissa will be the Natural Frequency (Hz), but the script allows the user to change to the period (T=1/f) by selecting the check box “x-axis, Period”.

Lastly, the script offers the possibility to store the results obtained by clicking ‘Create a file’. The GUI will request a filename and a directory and automatically create a .dat file which will contain all the data mentioned above.

-For further information, please relate to the document included in the .zip: "DFTdocument.pdf".

Cite As

Cristina M.Vila (2024). Discrete Fourier Transform GUI (https://www.mathworks.com/matlabcentral/fileexchange/58229-discrete-fourier-transform-gui), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2015a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0