Reset value of Ramp block to be used in Matlab Fctn block

1 回表示 (過去 30 日間)
William
William 2014 年 4 月 24 日
回答済み: Aquatris 2024 年 4 月 15 日
Can the initial value of the Ramp block to be reset to its initial value when it reaches certain value (ex: it starts at 2 & can it be reset to restart at 2 when it reaches the value of 10?) The Ramp is being used as the input to the code in ML Fctn block?
Thanks.

回答 (2 件)

Fangjun Jiang
Fangjun Jiang 2024 年 4 月 15 日
I think it is possible. Use the "State Writer" block.
But using the "Integrator" block would be easier. Enable its external reset.

Aquatris
Aquatris 2024 年 4 月 15 日
Seems like this was a homework problem :D
Take a look here:

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by