Simulink signal sequence from Matrix with feedback input

3 ビュー (過去 30 日間)
Niklas Braun
Niklas Braun 2020 年 11 月 10 日
編集済み: Fangjun Jiang 2020 年 11 月 10 日
I created a Matrix in Matlab which contains target values.
My aim is to feed the values from the matrix into my Simulink model, wait for my model to react to this target value, reach a steady state and then move on to the next target value.
I think i might need something like a repeating sequence stair, but with a feedback input to trigger the next value step.
Does such a block exist, or do you have any tips for a workaround?
Thank you.

採用された回答

Fangjun Jiang
Fangjun Jiang 2020 年 11 月 10 日
編集済み: Fangjun Jiang 2020 年 11 月 10 日
  1. Have a logic to determine if the output value meets a target value (within threshold or steady state for a period of time), output 1 if it does.
  2. Use an accumulator to create an index variable. 1 is added to this index variable once a target value is met.
  3. Use the index value to lookup for the target value. If the index value is increased by 1, it will look for the next value in your target value matrix/vector.

その他の回答 (0 件)

カテゴリ

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