Moving Average filter's incorrect output.
1 view (last 30 days)
Show older comments
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 Comments
Answers (0)
See Also
Categories
Find more on Filter Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!