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:
 T. Rossing, M. Schroeder, W. Hartmann, N. Fletcher, F. Dunn, D. Campbell, A. Pierce. Handbook of Acoustics. Springer, New York, 2007.
 H. Miller. 3-dimensional acoustic measurements using gating techniques. Bruel&Kjaer Application notes 17-163, 1976.
 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. (http://epubl.tugab.bg/documents/cat_view/46-----/61--52-----)
Hristo Zhivomirov (2022). Measurement of Loudspeaker Frequency Response with Matlab (https://www.mathworks.com/matlabcentral/fileexchange/46234-measurement-of-loudspeaker-frequency-response-with-matlab), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!