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

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!

 采纳的回答

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Event Functions 的更多信息

产品

版本

R2023a

标签

Community Treasure Hunt

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

Start Hunting!

Translated by