How to plot loudspeaker frequency response from its impulse response?

12 visualizaciones (últimos 30 días)
Ollie McIntyre
Ollie McIntyre el 26 de Jul. de 2017
Comentada: Sanya Tayal el 29 de Mayo de 2019
I have the impulse response of a loudspeaker - how do I convert this to a frequency response and plot it as a typical frequency response plot as shown in attached image.
Thanks
<<
>>

Respuestas (2)

Honglei Chen
Honglei Chen el 26 de Jul. de 2017
Frequency response is the Fourier transform of the impulse response so you should be able to use freqz to compute it if you are talking about in discrete domain. For plotting, you may want to use semilogx.
For example,
h = rand(1,64); % impulse response
fs = 1000;
Nfft = 128;
[H,F] = freqz(h,1,Nfft,fs);
semilogx(F,mag2db(abs(H))); grid on;
xlabel('Frequency (Hz)'); ylabel('Magnitude (dB)');
HTH

Star Strider
Star Strider el 26 de Jul. de 2017
I would take the Fourier transform of the impulse response. (Use the fft (link) function.)
That should be the frequency response of the speaker.

Categorías

Más información sobre Fourier Analysis and Filtering en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by