4 tap moving averaging filter

Hi
for a 4 tap moving averaging filter is following correct
s=1000;
>> x=randn(1,s);
>> b=[0.25,0.25,0.25,0.25];
>> y = filter( b, 1, x );
I will be highly obliged for the advice

Réponses (1)

Adam Danz
Adam Danz le 1 Déc 2018
Modifié(e) : Adam Danz le 1 Déc 2018

0 votes

Moving averages in matlab can be done using movemean() or with filter()

Catégories

Tags

Question posée :

le 1 Déc 2018

Modifié(e) :

le 1 Déc 2018

Community Treasure Hunt

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

Start Hunting!

Translated by