MATLAB: How Create Pentad average

pentad

Good day.Is there a way to create pentad average in Matlab?. Thanks.

Best Answer

You can calculate the 5 point moving average using the MATLAB function movmean
pentadAvg = movmean(dataArray, 5)