1-D digital filter runtime

조회 수: 1 (최근 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 CenterFile Exchange에서 Digital Filter Analysis에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by