1-D digital filter runtime

2 ビュー (過去 30 日間)
Peter Cook
Peter Cook 2015 年 3 月 27 日
コメント済み: Star Strider 2015 年 3 月 27 日
Quick question - Is there any computational savings to padding input arrays for the filter function to a power of 2?

採用された回答

Star Strider
Star Strider 2015 年 3 月 27 日
Not that I’m aware of. It would likely do the opposite. (It could also introduce artefactual ‘ringing’ in the output with a sharp transition to zeros.)
Also, use the filtfilt function if you have the Signal Processing Toolbox. It has the advantage of not introducing any phase distortion. The filter function does.
  2 件のコメント
Peter Cook
Peter Cook 2015 年 3 月 27 日
Good deal. I was messing around with repmat() and padarray() for that padding, but filtfilt on an unpadded array seems to get me what I was looking for.
Thanks much.
Star Strider
Star Strider 2015 年 3 月 27 日
My pleasure!

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

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by