Moving window in simulink during simulation

2 visualizaciones (últimos 30 días)
John
John el 19 de Jun. de 2014
Comentada: Mohammad Wasi Ahmadi el 10 de Jul. de 2017
I want to calculate the maximum value of a signal within a fixed window size of previous values. How can I do this in simulink? I need to use this calculation during the simulation, so post-processing the final data is not an option. Here is a screenshot to illustrate my question.
Thanks, John

Respuestas (1)

Kaixiang Wang
Kaixiang Wang el 8 de Mzo. de 2017
Try DSP System Toolbox - Statistics - Moving Maximum. You may want to put a Abs block in front of it as well.
  1 comentario
Mohammad Wasi Ahmadi
Mohammad Wasi Ahmadi el 10 de Jul. de 2017
I used this block, however, before this I need to add a rate transition block to digitise the signal. but it still gives an error, asking me to add a signal specification block before it. do you know what should I put in signal spec block? Thanks, Wasi

Iniciar sesión para comentar.

Community Treasure Hunt

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

Start Hunting!

Translated by