Spectrogram, STFT, with varied kinds of Plots
This is a wrapper for the inbuilt function "Spectrogram". It simply plots STFT in 4 different ways.
In order to use it call the function with first parameter either 'Line', 'Stem', 'Surface', 'Image' and the rest of the inputs are similar to inbuilt function in the same order.
Execute the demo to see a simple use case.
Brief of the plot types
1. Line - Creates on line for each frequency. You can see the variation of it's amplitude over time.
2. Stem - Creates a 3D stem plot x-time, y-frequency, z-amplitude.
3. Surface - Creates a 3D surface plot x-time, y-frequency, z-amplitude
4. Image - Most commonly used.
Cite As
Shreyes (2024). Spectrogram, STFT, with varied kinds of Plots (https://www.mathworks.com/matlabcentral/fileexchange/35842-spectrogram-stft-with-varied-kinds-of-plots), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Signal Processing > Signal Processing Toolbox > Transforms, Correlation, and Modeling > Transforms > Discrete Fourier and Cosine Transforms > Short-Time Fourier Transform >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Spectrogram/
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |