How do I get a magnitude respons with frequency at the x-axis?
5 次查看(过去 30 天)
显示 更早的评论
When I use the function freqz() I'll get a response with normalized frequency at the x-axis. Is there a way to get the freqency instead or optionally calculate it by hand?
0 个评论
采纳的回答
Star Strider
2017-10-19
Yes!
Supply the sampling frequency (here ‘Fs’) as an argument to freqz to get the plot in terms of actual frequency (from 0 Hz to the Nyquist frequency), where ‘NFFT’ is the length of the Fourier transform you want to use (a good choice being 2^16):
freqz(sos, NFFT, Fs)
or:
freqz(b, a, NFFT, Fs)
or others, depending on how you implemented your filter.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Digital Filter Analysis 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!