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

Answers (1)

Adam Danz
Adam Danz on 1 Dec 2018
Edited: Adam Danz on 1 Dec 2018
Moving averages in matlab can be done using movemean() or with filter()

Categories

Tags

Asked:

on 1 Dec 2018

Edited:

on 1 Dec 2018

Community Treasure Hunt

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

Start Hunting!