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

조회 수: 1 (최근 30일)
black_cat
black_cat 2021년 9월 22일
답변: black_cat 2021년 9월 22일
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 ...

답변 (1개)

black_cat
black_cat 2021년 9월 22일
Solved it by using a low-pass filter. :)

카테고리

Help CenterFile Exchange에서 Signal Generation에 대해 자세히 알아보기

태그

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by