Is there a way to capture the last 50 values without using 50 delay blocks?

3 visualizaciones (últimos 30 días)
I want to compare the last 50 values and only allow new values if the last 50 were equal. Currently I'm doing that with 5 values by using delay blocks:
Is there a way to achieve this without delay bocks? I don't think it's good practice to use 50 delay blocks ...

Respuestas (1)

black_cat
black_cat el 22 de Sept. de 2021
Solved it by using a low-pass filter. :)

Categorías

Más información sobre Array and Matrix Mathematics en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by