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.

Respuestas (0)

Etiquetas

Preguntada:

el 17 de Abr. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by