Moving Average filter's incorrect output.
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Filter Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!