How to plot loudspeaker frequency response from its impulse response?

13 ビュー (過去 30 日間)
Ollie McIntyre
Ollie McIntyre 2017 年 7 月 26 日
コメント済み: Sanya Tayal 2019 年 5 月 29 日
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
<<
>>

回答 (2 件)

Honglei Chen
Honglei Chen 2017 年 7 月 26 日
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
  1 件のコメント
Sanya Tayal
Sanya Tayal 2019 年 5 月 29 日
Hey, what does the '1' mean in freqz(h,1,Nfft,fs) ?

サインインしてコメントする。


Star Strider
Star Strider 2017 年 7 月 26 日
I would take the Fourier transform of the impulse response. (Use the fft (link) function.)
That should be the frequency response of the speaker.

カテゴリ

Help Center および File ExchangeFourier Analysis and Filtering についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by