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 Center および File ExchangeGeneral Applications についてさらに検索

タグ

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by