File Exchange

image thumbnail

Spectral Analysis with Matlab Implementation

version 1.8.0.0 (4.3 KB) by Hristo Zhivomirov
Spectral analysis including amplitude and phase spectrum as well as their graphical representation.

19 Downloads

Updated 12 Oct 2016

View License

The present code is a Matlab function that provides a computation of the:
1) one-sided amplitude spectrum;
2) one-sided phase spectrum;
3) frequency vector.
Two functions for spectral analysis are developed: one with firmly defined properties and one with customizable properties. Several examples are given in order to clarify the usage of each function. For convenience, the input and output arguments are given in the beginning of the functions.

The code is based on the theory described in:

[1] N. Majumdar, S. Banerjee. MATLAB Graphics and Data Visualization. Birmingham, Packt Publishing, 2012.

[2] D. Manolakis, V. Ingle. Applied Digital Signal Processing. Cambridge, Cambridge University Press, 2011.

[3] G. Heinzel, A. Rudiger, R. Schilling. Spectrum and spectral density estimation by the Discrete Fourier transform (DFT), including a comprehensive list of window functions and some new flat-top windows. Germany, Hannover, Max-Planck-Institut für Gravitationsphysik, 2002.

Comments and Ratings (3)

Dear Le Dung, please check the third reference - G. Heinzel, A. Rudiger, R. Schilling, Spectrum and spectral density estimation by the Discrete Fourier transform (DFT), including a comprehensive list of window functions and some new flat-top windows, Germany, Hannover, Max-Planck-Institut für Gravitationsphysik, 2002 (especially Sections 8 & 9). There is a good explanation how to obtain the amplitude spectrum of a signal using FFT and how to normalize the result.

All best,
Hristo Zhivomirov

Le Dung

Dear Hristo Zhivomirov.
Why Xamp = abs(fftx)/N/K?, could you explain to me?
Thank you so much

Dimo Petkov

Updates

1.8.0.0

A new version of the code has been uploaded.

1.7.0.0

A new version of the code has been uploaded.

1.6.0.0

A new version of the code has been uploaded.

1.5.0.0

A new version of the code has been uploaded.

1.4.0.0

A new version of the code has been uploaded.

1.3.0.0

A new reference literature has been added.

1.2.0.0

A semantic error has been corrected in the code.

1.1.0.0

Change of the title of the submission.

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