Script to make a average on sliding windows time

Hello,
I have a timeseries (recorded from simulation) and a need to make this calculation :
I need to set a sliding windows time (for ex 10ms) and each 1 ms this windows move forward and calculate the average of the sample.
This calculation is meant to smooth a ramp signal
i made it with simulink , but the windows need to be a parameter, so its not userfriendly
Thank a lot for answers.

Answers (0)

Asked:

on 17 Apr 2018

Community Treasure Hunt

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

Start Hunting!