MATLAB: Moving average of array moving averagemovmean Given an array of double data. How can I calculate the moving average of this array? Best Answer If you have R2016a or later, use the movmean (link) function. Otherwise, see the filter (link) documentation section on Moving Average Filter (link). Related SolutionsMATLAB: Moving average. That would be a 132 point moving average filter, which you can do with b = 1/132*ones(132,1); output = filter(b,1,input); MATLAB: Moving average x = mean(reshape(y,[],30)).' %y is 3000 x 1 Related QuestionCreate a moving averageIs medfilt2 a zero-phase filter
Best Answer