Set initial value to decrement from when using a sum block loop in Simulink

3 ビュー (過去 30 日間)
Steve
Steve 2023 年 8 月 13 日
回答済み: Fangjun Jiang 2023 年 8 月 13 日
I want to decrease a value down to zero using a negative sum block loop in Simulink. I can get the value to decrease by my specified decrement, but I'm not sure how to set the initial value. The block model is:
This configuration starts from 0 and decrements downwards from there:
How do I change the setup so that the initial starting value on the y-axis is also the same as the constant value (in this example 5) that is decremented?
Thanks for the help!

採用された回答

Fangjun Jiang
Fangjun Jiang 2023 年 8 月 13 日
Double click the Unit Delay block and set the initial value there.

その他の回答 (0 件)

カテゴリ

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

タグ

製品


リリース

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by