How do ı convert rad/sample to Hz?

32 ビュー (過去 30 日間)
studentmatlaber
studentmatlaber 2021 年 5 月 26 日
コメント済み: Star Strider 2021 年 5 月 27 日
Hello to everyone. I passed the signal through the Parks-McClellan optimal FIR filter. With the fvtool command, I get the magnitude response in rad / sample. but what I want is a filter response graph in Hertz. Is there a command that can directly plot the graph in Hertz? Or how do I convert rad / sample to Herzt.
[n, fo, ao, w] = firpmord ([0.04 1], [1 0], [0.001 0.01], Fs);
b = firpm (n, fo, ao, w);
fvtool(b,1);
  2 件のコメント
studentmatlaber
studentmatlaber 2021 年 5 月 27 日
thank you so much
Star Strider
Star Strider 2021 年 5 月 27 日
As always, my pleasure!

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

採用された回答

Star Strider
Star Strider 2021 年 5 月 26 日
Note that π radians/sample is equivalent to the Nyquist frequency, one-half of the sampling frequency.
In fvtool, click on the x-axis label to change it from rad/sample to Hz automatically. Another option is to use the freqz function instead, and specify ‘Fs’ as the last argument:
Fs = 10; % Define ®Fs'
[n, fo, ao, w] = firpmord ([0.04 1], [1 0], [0.001 0.01], Fs);
b = firpm (n, fo, ao, w);
figure
freqz(b, 1, 2^16, Fs)
.

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by