Filter löschen
Filter löschen

Moving Average filter's incorrect output.

1 Ansicht (letzte 30 Tage)
Varun Gupta
Varun Gupta am 22 Jul. 2020
Bearbeitet: Varun Gupta am 22 Jul. 2020
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.

Antworten (0)

Produkte


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by