cutoff frequency for lowpass filter

16 ビュー (過去 30 日間)
Dhanushka Palipana
Dhanushka Palipana 2020 年 5 月 11 日
コメント済み: Star Strider 2020 年 5 月 12 日
Hello!
To get the cutoff frequency when using lowpass() function, I used powerbw(x,Fs) function.
Is this correct?
Thanks

採用された回答

Star Strider
Star Strider 2020 年 5 月 11 日
Is this correct?
That depends on the signal, and on what you want to do. The powerbw funciton returns the -3 dB frequencies if you request them (see: Bandwidth of Bandlimited Signals). For a lowpass filter, you would likely use the fhi output, if the intent is to use that part of the spectrum, or flo to exclude it.
It is probably as good a method as any of choosing a frequency for a filter. (I characteristically calculate the fft of the signal and then use it to design the filter, however there a definitely other ways.)
  10 件のコメント
Dhanushka Palipana
Dhanushka Palipana 2020 年 5 月 12 日
This is not a designed function. I used the matlab in-build function filtfilt. And those are exactly what I used for b and a(They are just trial and error). The output signal seems to be similar as the output signal from lowpass filter. So, I feel like the output is ok. I was worried if there can be any changes to the signal that is unrecognizable by just looking at the output signal plot. (Also, like those weird things happening near the peaks).
Thank you!!
Star Strider
Star Strider 2020 年 5 月 12 日
As always, my pleasure!
No worries — I just want to be sure that you are not overshadowing filtfilt.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDigital and Analog Filters についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by