Spectrum Visualization with Matlab Implementation
The present code is a Matlab function that provides a 3D visual representation of the spectrum obtained by a spectral analysis of a given signal x[n]. The results are:
1) 3D scatter plot of the spectrum – frequency, phase and magnitude across the x-, y- and z- axis, respectively. The magnitude of the spectral components is double coded – via the color and the size of the scatter points. The exact location of a given point on the plot could be observed using the Data Cursor;
2) optionally, mark on the significant spectrum peaks.
Four examples are given in order to clarify the usage of the function. For convenience, the input and output arguments are given in the beginning of the function.
The code is based on the theory described in:
[1] N. Majumdar, S. Banerjee. MATLAB Graphics and Data Visualization. Birmingham, Packt Publishing, 2012.
[2] 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.
Citation pour cette source
Hristo Zhivomirov (2024). Spectrum Visualization with Matlab Implementation (https://www.mathworks.com/matlabcentral/fileexchange/60681-spectrum-visualization-with-matlab-implementation), MATLAB Central File Exchange. Récupéré le .
Compatibilité avec les versions de MATLAB
Plateformes compatibles
Windows macOS LinuxCatégories
Tags
Remerciements
Inspiré par : Spectral Analysis with Matlab Implementation
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
Version | Publié le | Notes de version | |
---|---|---|---|
1.2.0.0 | A new version of the code has been uploaded. |
||
1.1.0.0 | A new version of the code has been uploaded. |
||
1.0.0.0 |