Need help understanding what this filter does
1 view (last 30 days)
Show older comments
Hi All,
I'm in the process of expanding a Matlab application that someone else has written (don't worry, I have their permission). However, I'm stuck. I can't work out what the following filter is doing?
Fil = filter(1-am, [1 -am], daten, init)
Some more info, am = 0.8, daten = a range of numbers in an array, and init = 0.027.
I've scoured the help docs but am none the wiser, so help is greatly appreciated.
0 Comments
Accepted Answer
Honglei Chen
on 17 Oct 2012
It is just an auto regressive filter, in your case, your filter coefficients are
b = 0.2
a = [1 -0.8]
So if you write it into difference equation, it is basically
y[n] = 0.8*y[n-1] + 0.2*x[n]
i.e., the output is determined by both the previous output and the current input, and the previous output is weighted more.
0 Comments
More Answers (0)
See Also
Categories
Find more on Filter Analysis in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!