store previous values then use them in simulink

120 ビュー (過去 30 日間)
Ghazwan
Ghazwan 2017 年 11 月 13 日
コメント済み: Ghazwan 2018 年 6 月 16 日
Hello, Let's say that I'm getting y=[1 5 7 2 3] at Time=[0 1 2 3 4 5] in a Simulink simulation. At Time=6, I would like to use all the previous values stored in y. I tried Unite Delay, Memory, and Data Store Blocks. But they didn't work. I also tried to make a costumized function in matlab, but it works on point-by-point bases. Is there any other way around this?
Thanks in advance

採用された回答

Ameer Hamza
Ameer Hamza 2018 年 6 月 16 日
You can use buffer in Simulink to store a specified number of values. The buffer block will output a vector when after receiving the number of samples and you can process on the past values.
  1 件のコメント
Ghazwan
Ghazwan 2018 年 6 月 16 日
Thank you!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by