How to plot loudspeaker frequency response from its impulse response?
이전 댓글 표시
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
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
2019년 5월 29일
Hey, what does the '1' mean in freqz(h,1,Nfft,fs) ?
Star Strider
2017년 7월 26일
0 개 추천
That should be the frequency response of the speaker.
카테고리
도움말 센터 및 File Exchange에서 Spectral Measurements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!