Input signal varies in size, how to get previous values of signal?

1 回表示 (過去 30 日間)
Phan Dang Thoai
Phan Dang Thoai 2021 年 8 月 13 日
回答済み: Pavan Guntha 2021 年 8 月 17 日
Br is input signal whose size varies. I need to get this and previous 15 values (Br-1, Br-2...Br-15). I use 15 delay blocks (z^-1) to get 15 previous values. I work fine untill Br varies in size (e.g Br changes from a vector of 256 bits to a vector of 384 bits). Simulink said variable size vector causes the reset of delay block and popup runtime error. Attachment is the design model.
Can we have a solution to get previous 15 values of a variable size signal?

回答 (1 件)

Pavan Guntha
Pavan Guntha 2021 年 8 月 17 日
Hello Phan,
I understand that the issue faced is with delaying a variable sized signal using a unit delay block. You may refer to the blog on Variable-sized signals and unit delay which clearly describes few workarounds for this issue.
Hope this helps!

カテゴリ

Help Center および File ExchangeSources についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by