Moving Average filter's incorrect output.
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I want to to design a simple moving average filter with window size 5.
Since, filter order = 1+window size (hence, order kept 6)
I did this is filterDesigner -
My data's last 5 fields are -> 34.2700, 34.2700, 34.2700, 34.2800, 34.2800
Simple Moving Average output SHOULD BE = 34.274 by (adding all above/5)
dsp.MovingAverage() also gives 34.2740 but later I need to use fvtool to plot the filter, but dsp.MovingAverage() doesn't return a filter object.
But, I'm getting = 34.2716
Is my above filter design not of a Simple moving average filter?
How to resolve this?
Thank you.
0 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur Filter Analysis dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!