How do I get a magnitude respons with frequency at the x-axis?

5 ビュー (過去 30 日間)
Joakim Hansen
Joakim Hansen 2017 年 10 月 19 日
コメント済み: Star Strider 2017 年 10 月 20 日
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?

採用された回答

Star Strider
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.
  2 件のコメント
Joakim Hansen
Joakim Hansen 2017 年 10 月 20 日
Thank you!
Star Strider
Star Strider 2017 年 10 月 20 日
As always, my pleasure!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDigital Filter Analysis についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by