Moving Average filter's incorrect output.

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.

Answers (0)

Products

Release

R2020a

Asked:

on 22 Jul 2020

Edited:

on 22 Jul 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!