Need help understanding what this filter does
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposta accettata
Honglei Chen
il 17 Ott 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 Commenti
Più risposte (0)
Vedere anche
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!