Matlab - applying low-pass filter to a vector?

Posted by waitinforatrain on Stack Overflow See other posts from Stack Overflow or by waitinforatrain
Published on 2010-05-05T05:59:17Z Indexed on 2010/05/05 6:28 UTC
Read the original article Hit count: 274

Filed under:
|

If I have a simple low-pass filter, e.g.

filt = fir1(20, 0.2);

and a matrix with a list of numbers (a signal), e.g. [0.1, -0.2, 0.3, -0.4] etc, how do I actually apply the filter I've created to this signal?

Seems like a simple question but I've been stuck for hours. Do I need to manually calculate it from the filter coefficients?

© Stack Overflow or respective owner

Related posts about matlab

Related posts about filtering