Sound Analysis with Matlab

Time and frequency analysis, signal statistics, etc. of a sound signal.


Updated 28 Jun 2020

View License

The present code is a Matlab program for signal analysis of a given sound file. The analysis includes:
1) Options for:
- signal detrending;
- signal normalization.
2) Plotting of the:
- signal in the time domain (oscillogram);
- signal in the frequency domain (spectrum);
- signal in the time-frequency domain (spectrogram);
- signal in the time-quefrency domain (cepstrogram);
- amplitude distribution of the signal (histogram);
- autocorrelation function of the signal (correlogram).
3) Displaying of the:
- minimum and maximum value of the signal;
- standard deviation (RMS-value);
- mean value (DC-value);
- crest-factor Q;
- dynamic range D;
- autocorrelation time.

The code is based on the theory described in:

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

[2] J. Benesty, M. Sondhi, Y. Huang. Springer Handbook of Speech Processing. Berlin, Springer, 2008.

[3] Хр. Живомиров, Д. Пламенова. Изследване някои параметри на аудио сигналите. Национална конференция с м.у. „Акустика 2012”, 12 Октомври 2012, Варна / Списание Акустика, ISSN: 1312-4897, год. XIV, бр. 14, стр. 89-95, 2012.

Cite As

Hristo Zhivomirov (2023). Sound Analysis with Matlab (, MATLAB Central File Exchange. Retrieved .

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

Inspired: Noise Analysis with Matlab, plotpsd


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

A new version of the code has been uploaded.

A new version of the code has been uploaded.

A new version of the code has been uploaded.

Calculation of the autocorrelation function of the signal is added.