File Exchange

image thumbnail

Measurement of Loudspeaker Frequency Response with Matlab

version (3.72 KB) by Hristo Zhivomirov
Frequency response measurement of a loudspeaker using Sound card.


Updated 09 Feb 2019

View License

The code presented here concerns the frequency response measurement of a loudspeaker. The measurement technique is based on generation of a set of sine-wave tone signals with one and the same level, reproduction of every signal by the loudspeaker and measurement of the SPL by measurement microphone. Then the transfer function (i.e. the amplitude ratio of the output/input signal) is calculated for every given frequency and finally the frequency response is plotted. For better results a data strobe is performed and StobeChoice.m file is provided, so one can choose the range of the input data used for the measurements. The code provides:
1) plot of the normalized frequency response of the loudspeaker;
2) data.txt file with the measurement results (for post-processing).

The code is based on the theory described in:

[1] T. Rossing, M. Schroeder, W. Hartmann, N. Fletcher, F. Dunn, D. Campbell, A. Pierce. Handbook of Acoustics. Springer, New York, 2007.

[2] H. Miller. 3-dimensional acoustic measurements using gating techniques. Bruel&Kjaer Application notes 17-163, 1976.

[3] H. Zhivomirov, I. Iliev. Radiation Pattern Measurement with Matlab Implementation. Journal of the Technical University of Gabrovo, ISSN: 1310-6686, Vol. 52, pp. 73-76, 2016. (

Cite As

Hristo Zhivomirov (2020). Measurement of Loudspeaker Frequency Response with Matlab (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (3)

Maximilian Bille

jing zhang



A new version of the code has been uploaded.

A new version of the code has been uploaded.

MATLAB Release Compatibility
Created with R2014b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags