Reset value of Ramp block to be used in Matlab Fctn block
1 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(2 个)
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Event Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!