1-D digital filter runtime

2 Ansichten (letzte 30 Tage)
Peter Cook
Peter Cook am 27 Mär. 2015
Kommentiert: Star Strider am 27 Mär. 2015
Quick question - Is there any computational savings to padding input arrays for the filter function to a power of 2?

Akzeptierte Antwort

Star Strider
Star Strider am 27 Mär. 2015
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 Kommentare
Peter Cook
Peter Cook am 27 Mär. 2015
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 am 27 Mär. 2015
My pleasure!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by