spectral_analysis
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
Platform Compatibility
Windows macOS LinuxTags
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.