spectral_analysis

Version 1.0.1 (1.09 KB) by Manoj K J
This function computes the Fast Fourier transform of an input audio file data and plots it on the frequency axis.
65 Downloads
Updated 28 Feb 2020

View License

This function computes the discrete Fourier transform of an input audio signal using the Fast Fourier Transform algorithm built into Matlab's fft() function as part of the signal processing toolbox.

The inputs are the data extracted from any audio file. The audio data and the sampling rate should be extracted from the audio and passed to this function.
Ex : [audio_data, sample_rate] = audioread('test.mp3');
Also, the title that should appear on the plot of the fft is to passed as a string

Ex : spectral_analysis(audio_data, sample_rate,"FFT Plot")

Cite As

Manoj K J (2024). spectral_analysis (https://www.mathworks.com/matlabcentral/fileexchange/74381-spectral_analysis), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2019b
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.1

Corrected the axis labels

1.0.0